Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Turn QDoubleSpinBox widgets into QgsDoubleSpingBox (from Nyall's review)
  • Loading branch information
wonder-sk committed Sep 30, 2017
1 parent 518dd17 commit 982cfef
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 24 deletions.
11 changes: 8 additions & 3 deletions src/ui/3d/line3dsymbolwidget.ui
Expand Up @@ -24,7 +24,7 @@
</widget>
</item>
<item row="1" column="1">
<widget class="QDoubleSpinBox" name="spinHeight">
<widget class="QgsDoubleSpinBox" name="spinHeight">
<property name="minimum">
<double>-99999.000000000000000</double>
</property>
Expand All @@ -41,7 +41,7 @@
</widget>
</item>
<item row="2" column="1">
<widget class="QDoubleSpinBox" name="spinExtrusion">
<widget class="QgsDoubleSpinBox" name="spinExtrusion">
<property name="maximum">
<double>99999.000000000000000</double>
</property>
Expand Down Expand Up @@ -102,7 +102,7 @@
</widget>
</item>
<item row="0" column="1">
<widget class="QDoubleSpinBox" name="spinWidth">
<widget class="QgsDoubleSpinBox" name="spinWidth">
<property name="maximum">
<double>99999.000000000000000</double>
</property>
Expand All @@ -129,6 +129,11 @@
<header>qgsphongmaterialwidget.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QgsDoubleSpinBox</class>
<extends>QDoubleSpinBox</extends>
<header>qgsdoublespinbox.h</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>spinWidth</tabstop>
Expand Down
11 changes: 8 additions & 3 deletions src/ui/3d/map3dconfigwidget.ui
Expand Up @@ -38,7 +38,7 @@
</widget>
</item>
<item row="1" column="1" colspan="2">
<widget class="QDoubleSpinBox" name="spinTerrainScale">
<widget class="QgsDoubleSpinBox" name="spinTerrainScale">
<property name="value">
<double>1.000000000000000</double>
</property>
Expand Down Expand Up @@ -98,7 +98,7 @@
</widget>
</item>
<item row="2" column="1">
<widget class="QDoubleSpinBox" name="spinGroundError">
<widget class="QgsDoubleSpinBox" name="spinGroundError">
<property name="suffix">
<string> map units</string>
</property>
Expand Down Expand Up @@ -131,7 +131,7 @@
</widget>
</item>
<item row="1" column="1">
<widget class="QDoubleSpinBox" name="spinScreenError">
<widget class="QgsDoubleSpinBox" name="spinScreenError">
<property name="suffix">
<string> px</string>
</property>
Expand Down Expand Up @@ -172,6 +172,11 @@
</layout>
</widget>
<customwidgets>
<customwidget>
<class>QgsDoubleSpinBox</class>
<extends>QDoubleSpinBox</extends>
<header>qgsdoublespinbox.h</header>
</customwidget>
<customwidget>
<class>QgsMapLayerComboBox</class>
<extends>QComboBox</extends>
Expand Down
7 changes: 6 additions & 1 deletion src/ui/3d/phongmaterialwidget.ui
Expand Up @@ -73,7 +73,7 @@
</widget>
</item>
<item row="3" column="1">
<widget class="QDoubleSpinBox" name="spinShininess">
<widget class="QgsDoubleSpinBox" name="spinShininess">
<property name="maximum">
<double>1000.000000000000000</double>
</property>
Expand All @@ -82,6 +82,11 @@
</layout>
</widget>
<customwidgets>
<customwidget>
<class>QgsDoubleSpinBox</class>
<extends>QDoubleSpinBox</extends>
<header>qgsdoublespinbox.h</header>
</customwidget>
<customwidget>
<class>QgsColorButton</class>
<extends>QToolButton</extends>
Expand Down
35 changes: 20 additions & 15 deletions src/ui/3d/point3dsymbolwidget.ui
Expand Up @@ -32,7 +32,7 @@
</widget>
</item>
<item row="1" column="1">
<widget class="QDoubleSpinBox" name="spinRadius">
<widget class="QgsDoubleSpinBox" name="spinRadius">
<property name="maximum">
<double>99999.000000000000000</double>
</property>
Expand All @@ -49,7 +49,7 @@
</widget>
</item>
<item row="2" column="1">
<widget class="QDoubleSpinBox" name="spinMinorRadius">
<widget class="QgsDoubleSpinBox" name="spinMinorRadius">
<property name="maximum">
<double>99999.000000000000000</double>
</property>
Expand All @@ -66,7 +66,7 @@
</widget>
</item>
<item row="3" column="1">
<widget class="QDoubleSpinBox" name="spinTopRadius">
<widget class="QgsDoubleSpinBox" name="spinTopRadius">
<property name="maximum">
<double>99999.000000000000000</double>
</property>
Expand All @@ -80,7 +80,7 @@
</widget>
</item>
<item row="4" column="1">
<widget class="QDoubleSpinBox" name="spinBottomRadius">
<widget class="QgsDoubleSpinBox" name="spinBottomRadius">
<property name="maximum">
<double>99999.000000000000000</double>
</property>
Expand All @@ -97,7 +97,7 @@
</widget>
</item>
<item row="5" column="1">
<widget class="QDoubleSpinBox" name="spinSize">
<widget class="QgsDoubleSpinBox" name="spinSize">
<property name="maximum">
<double>99999.000000000000000</double>
</property>
Expand All @@ -114,7 +114,7 @@
</widget>
</item>
<item row="6" column="1">
<widget class="QDoubleSpinBox" name="spinLength">
<widget class="QgsDoubleSpinBox" name="spinLength">
<property name="maximum">
<double>99999.000000000000000</double>
</property>
Expand Down Expand Up @@ -208,21 +208,21 @@
</widget>
</item>
<item row="1" column="1">
<widget class="QDoubleSpinBox" name="spinTX">
<widget class="QgsDoubleSpinBox" name="spinTX">
<property name="minimum">
<double>-99.900000000000006</double>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QDoubleSpinBox" name="spinTY">
<widget class="QgsDoubleSpinBox" name="spinTY">
<property name="minimum">
<double>-99.900000000000006</double>
</property>
</widget>
</item>
<item row="1" column="3">
<widget class="QDoubleSpinBox" name="spinTZ">
<widget class="QgsDoubleSpinBox" name="spinTZ">
<property name="minimum">
<double>-99.900000000000006</double>
</property>
Expand All @@ -236,21 +236,21 @@
</widget>
</item>
<item row="2" column="1">
<widget class="QDoubleSpinBox" name="spinSX">
<widget class="QgsDoubleSpinBox" name="spinSX">
<property name="value">
<double>1.000000000000000</double>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QDoubleSpinBox" name="spinSY">
<widget class="QgsDoubleSpinBox" name="spinSY">
<property name="value">
<double>1.000000000000000</double>
</property>
</widget>
</item>
<item row="2" column="3">
<widget class="QDoubleSpinBox" name="spinSZ">
<widget class="QgsDoubleSpinBox" name="spinSZ">
<property name="value">
<double>1.000000000000000</double>
</property>
Expand All @@ -264,7 +264,7 @@
</widget>
</item>
<item row="3" column="1">
<widget class="QDoubleSpinBox" name="spinRX">
<widget class="QgsDoubleSpinBox" name="spinRX">
<property name="decimals">
<number>0</number>
</property>
Expand All @@ -274,7 +274,7 @@
</widget>
</item>
<item row="3" column="2">
<widget class="QDoubleSpinBox" name="spinRY">
<widget class="QgsDoubleSpinBox" name="spinRY">
<property name="decimals">
<number>0</number>
</property>
Expand All @@ -284,7 +284,7 @@
</widget>
</item>
<item row="3" column="3">
<widget class="QDoubleSpinBox" name="spinRZ">
<widget class="QgsDoubleSpinBox" name="spinRZ">
<property name="decimals">
<number>0</number>
</property>
Expand All @@ -304,6 +304,11 @@
<header>qgsphongmaterialwidget.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QgsDoubleSpinBox</class>
<extends>QDoubleSpinBox</extends>
<header>qgsdoublespinbox.h</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>spinRadius</tabstop>
Expand Down
9 changes: 7 additions & 2 deletions src/ui/3d/polygon3dsymbolwidget.ui
Expand Up @@ -24,7 +24,7 @@
</widget>
</item>
<item row="0" column="1">
<widget class="QDoubleSpinBox" name="spinHeight">
<widget class="QgsDoubleSpinBox" name="spinHeight">
<property name="minimum">
<double>-99999.000000000000000</double>
</property>
Expand All @@ -41,7 +41,7 @@
</widget>
</item>
<item row="1" column="1">
<widget class="QDoubleSpinBox" name="spinExtrusion">
<widget class="QgsDoubleSpinBox" name="spinExtrusion">
<property name="maximum">
<double>99999.000000000000000</double>
</property>
Expand Down Expand Up @@ -115,6 +115,11 @@
<header>qgsphongmaterialwidget.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QgsDoubleSpinBox</class>
<extends>QDoubleSpinBox</extends>
<header>qgsdoublespinbox.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
Expand Down

0 comments on commit 982cfef

Please sign in to comment.