Skip to content

Commit e7b5d62

Browse files
committedAug 27, 2018
Change geometry precision spin box to QgsDoubleSpinBox, with reset button
1 parent 56a4063 commit e7b5d62

File tree

1 file changed

+34
-10
lines changed

1 file changed

+34
-10
lines changed
 

‎src/ui/qgsvectorlayerpropertiesbase.ui

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2373,23 +2373,40 @@ border-radius: 2px;</string>
23732373
</property>
23742374
</widget>
23752375
</item>
2376-
<item row="1" column="1">
2377-
<widget class="QDoubleSpinBox" name="mGeometryPrecisionSpinBox">
2378-
<property name="toolTip">
2379-
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The geometry precision defines the maximum precision to of geometry coordinates that should be stored on this layer. A snap to grid algorithm will be applied on every geometry entering this layer, resulting in coordinates being rounded to multiples of this value. The operation is applied in this layer's coordinate reference system.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
2380-
</property>
2381-
<property name="specialValueText">
2382-
<string>[Disabled]</string>
2383-
</property>
2384-
</widget>
2385-
</item>
23862376
<item row="0" column="0" colspan="2">
23872377
<widget class="QCheckBox" name="mRemoveDuplicateNodesCheckbox">
23882378
<property name="text">
23892379
<string>Remove duplicate nodes</string>
23902380
</property>
23912381
</widget>
23922382
</item>
2383+
<item row="1" column="1">
2384+
<layout class="QHBoxLayout" name="horizontalLayout_11" stretch="1,2">
2385+
<item>
2386+
<widget class="QgsDoubleSpinBox" name="mGeometryPrecisionSpinBox">
2387+
<property name="toolTip">
2388+
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The geometry precision defines the maximum precision to of geometry coordinates that should be stored on this layer. A snap to grid algorithm will be applied on every geometry entering this layer, resulting in coordinates being rounded to multiples of this value. The operation is applied in this layer's coordinate reference system.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
2389+
</property>
2390+
<property name="specialValueText">
2391+
<string>[Disabled]</string>
2392+
</property>
2393+
</widget>
2394+
</item>
2395+
<item>
2396+
<spacer name="horizontalSpacer_9">
2397+
<property name="orientation">
2398+
<enum>Qt::Horizontal</enum>
2399+
</property>
2400+
<property name="sizeHint" stdset="0">
2401+
<size>
2402+
<width>40</width>
2403+
<height>20</height>
2404+
</size>
2405+
</property>
2406+
</spacer>
2407+
</item>
2408+
</layout>
2409+
</item>
23932410
</layout>
23942411
</widget>
23952412
</item>
@@ -2512,6 +2529,11 @@ border-radius: 2px;</string>
25122529
<header>qgsvectorlayerlegendwidget.h</header>
25132530
<container>1</container>
25142531
</customwidget>
2532+
<customwidget>
2533+
<class>QgsDoubleSpinBox</class>
2534+
<extends>QDoubleSpinBox</extends>
2535+
<header>qgsdoublespinbox.h</header>
2536+
</customwidget>
25152537
</customwidgets>
25162538
<tabstops>
25172539
<tabstop>mSearchLineEdit</tabstop>
@@ -2573,6 +2595,8 @@ border-radius: 2px;</string>
25732595
<tabstop>mLayerMetadataUrlFormatComboBox</tabstop>
25742596
<tabstop>mLayerLegendUrlLineEdit</tabstop>
25752597
<tabstop>mLayerLegendUrlFormatComboBox</tabstop>
2598+
<tabstop>mRemoveDuplicateNodesCheckbox</tabstop>
2599+
<tabstop>mGeometryPrecisionSpinBox</tabstop>
25762600
</tabstops>
25772601
<resources>
25782602
<include location="../../images/images.qrc"/>

0 commit comments

Comments
 (0)
Please sign in to comment.