Skip to content

Commit

Permalink
Move widgets from QSpinBox to QgsSpinBox
Browse files Browse the repository at this point in the history
  • Loading branch information
DelazJ authored and nyalldawson committed Oct 3, 2020
1 parent 19acc15 commit 602a775
Show file tree
Hide file tree
Showing 35 changed files with 231 additions and 82 deletions.
9 changes: 7 additions & 2 deletions src/ui/3d/map3dexportwidget.ui
Expand Up @@ -26,7 +26,7 @@
<item row="0" column="0">
<layout class="QGridLayout" name="gridLayout">
<item row="3" column="1" colspan="2">
<widget class="QSpinBox" name="terrainTextureResolutionSpinBox">
<widget class="QgsSpinBox" name="terrainTextureResolutionSpinBox">
<property name="minimum">
<number>16</number>
</property>
Expand Down Expand Up @@ -90,7 +90,7 @@
</widget>
</item>
<item row="2" column="1" colspan="2">
<widget class="QSpinBox" name="terrainResolutionSpinBox">
<widget class="QgsSpinBox" name="terrainResolutionSpinBox">
<property name="minimum">
<number>1</number>
</property>
Expand Down Expand Up @@ -161,6 +161,11 @@
<header>qgsfilewidget.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QgsSpinBox</class>
<extends>QSpinBox</extends>
<header>qgsspinbox.h</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>sceneNameLineEdit</tabstop>
Expand Down
7 changes: 6 additions & 1 deletion src/ui/3d/qgsvectorlayer3dpropertieswidget.ui
Expand Up @@ -42,7 +42,7 @@
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinZoomLevelsCount">
<widget class="QgsSpinBox" name="spinZoomLevelsCount">
<property name="minimum">
<number>1</number>
</property>
Expand Down Expand Up @@ -75,6 +75,11 @@
<header>qgscollapsiblegroupbox.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QgsSpinBox</class>
<extends>QSpinBox</extends>
<header>qgsspinbox.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
Expand Down
7 changes: 6 additions & 1 deletion src/ui/attributeformconfig/qgsattributeformcontaineredit.ui
Expand Up @@ -64,7 +64,7 @@
</widget>
</item>
<item row="3" column="1">
<widget class="QSpinBox" name="mColumnCountSpinBox">
<widget class="QgsSpinBox" name="mColumnCountSpinBox">
<property name="minimum">
<number>1</number>
</property>
Expand Down Expand Up @@ -116,6 +116,11 @@
<extends>QToolButton</extends>
<header>qgscolorbutton.h</header>
</customwidget>
<customwidget>
<class>QgsSpinBox</class>
<extends>QSpinBox</extends>
<header>qgsspinbox.h</header>
</customwidget>
<customwidget>
<class>QgsFieldExpressionWidget</class>
<extends>QWidget</extends>
Expand Down
9 changes: 7 additions & 2 deletions src/ui/auth/qgsauthsslimportdialog.ui
Expand Up @@ -127,7 +127,7 @@
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinbxPort">
<widget class="QgsSpinBox" name="spinbxPort">
<property name="maximum">
<number>50000</number>
</property>
Expand Down Expand Up @@ -170,7 +170,7 @@
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinbxTimeout">
<widget class="QgsSpinBox" name="spinbxTimeout">
<property name="font">
<font>
<pointsize>8</pointsize>
Expand Down Expand Up @@ -273,6 +273,11 @@
<header>qgsauthsslconfigwidget.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QgsSpinBox</class>
<extends>QSpinBox</extends>
<header>qgsspinbox.h</header>
</customwidget>
<customwidget>
<class>QgsCollapsibleGroupBoxBasic</class>
<extends>QGroupBox</extends>
Expand Down
13 changes: 9 additions & 4 deletions src/ui/editorwidgets/qgsrangeconfigdlgbase.ui
Expand Up @@ -52,7 +52,7 @@
</widget>
</item>
<item row="1" column="1">
<widget class="QSpinBox" name="precisionSpinBox">
<widget class="QgsSpinBox" name="precisionSpinBox">
<property name="toolTip">
<string>Number of decimal places</string>
</property>
Expand Down Expand Up @@ -108,7 +108,7 @@
</widget>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="minimumSpinBox"/>
<widget class="QgsSpinBox" name="minimumSpinBox"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="maximumLabel">
Expand All @@ -118,7 +118,7 @@
</widget>
</item>
<item row="1" column="1">
<widget class="QSpinBox" name="maximumSpinBox"/>
<widget class="QgsSpinBox" name="maximumSpinBox"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="stepLabel">
Expand All @@ -128,7 +128,7 @@
</widget>
</item>
<item row="2" column="1">
<widget class="QSpinBox" name="stepSpinBox"/>
<widget class="QgsSpinBox" name="stepSpinBox"/>
</item>
</layout>
</widget>
Expand Down Expand Up @@ -185,6 +185,11 @@
</layout>
</widget>
<customwidgets>
<customwidget>
<class>QgsSpinBox</class>
<extends>QSpinBox</extends>
<header>qgsspinbox.h</header>
</customwidget>
<customwidget>
<class>QgsDoubleSpinBox</class>
<extends>QDoubleSpinBox</extends>
Expand Down
7 changes: 6 additions & 1 deletion src/ui/editorwidgets/qgsvaluerelationconfigdlgbase.ui
Expand Up @@ -124,7 +124,7 @@
</widget>
</item>
<item row="9" column="1">
<widget class="QSpinBox" name="mNofColumns"/>
<widget class="QgsSpinBox" name="mNofColumns"/>
</item>
<item row="2" column="1">
<widget class="QgsFieldComboBox" name="mKeyColumn"/>
Expand Down Expand Up @@ -157,6 +157,11 @@
<extends>QComboBox</extends>
<header>qgsfieldcombobox.h</header>
</customwidget>
<customwidget>
<class>QgsSpinBox</class>
<extends>QSpinBox</extends>
<header>qgsspinbox.h</header>
</customwidget>
<customwidget>
<class>QgsMapLayerComboBox</class>
<extends>QComboBox</extends>
Expand Down
7 changes: 6 additions & 1 deletion src/ui/effects/widget_coloreffects.ui
Expand Up @@ -171,7 +171,7 @@
</widget>
</item>
<item row="3" column="2">
<widget class="QSpinBox" name="mColorizeStrengthSpinBox">
<widget class="QgsSpinBox" name="mColorizeStrengthSpinBox">
<property name="suffix">
<string>%</string>
</property>
Expand Down Expand Up @@ -301,6 +301,11 @@
<extends>QComboBox</extends>
<header>qgseffectdrawmodecombobox.h</header>
</customwidget>
<customwidget>
<class>QgsSpinBox</class>
<extends>QSpinBox</extends>
<header>qgsspinbox.h</header>
</customwidget>
<customwidget>
<class>QgsOpacityWidget</class>
<extends>QWidget</extends>
Expand Down
9 changes: 7 additions & 2 deletions src/ui/layout/qgslayoutnewpagedialog.ui
Expand Up @@ -137,7 +137,7 @@
<item row="1" column="0" colspan="4">
<layout class="QGridLayout" name="gridLayout_4" columnstretch="0,1,0,1">
<item row="0" column="1">
<widget class="QSpinBox" name="mPagesSpinBox">
<widget class="QgsSpinBox" name="mPagesSpinBox">
<property name="minimum">
<number>1</number>
</property>
Expand Down Expand Up @@ -193,7 +193,7 @@
</widget>
</item>
<item row="1" column="2">
<widget class="QSpinBox" name="mExistingPageSpinBox">
<widget class="QgsSpinBox" name="mExistingPageSpinBox">
<property name="minimum">
<number>1</number>
</property>
Expand Down Expand Up @@ -243,6 +243,11 @@
<extends>QComboBox</extends>
<header>qgslayoutunitscombobox.h</header>
</customwidget>
<customwidget>
<class>QgsSpinBox</class>
<extends>QSpinBox</extends>
<header>qgsspinbox.h</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>mPagesSpinBox</tabstop>
Expand Down
7 changes: 6 additions & 1 deletion src/ui/mesh/qgsmeshlayerpropertiesbase.ui
Expand Up @@ -471,7 +471,7 @@ border-radius: 2px;</string>
</widget>
</item>
<item row="1" column="2">
<widget class="QSpinBox" name="mSimplifyMeshResolutionSpinBox">
<widget class="QgsSpinBox" name="mSimplifyMeshResolutionSpinBox">
<property name="suffix">
<string> pixels/triangle</string>
</property>
Expand Down Expand Up @@ -776,6 +776,11 @@ border-radius: 2px;</string>
<extends>QDoubleSpinBox</extends>
<header>qgsdoublespinbox.h</header>
</customwidget>
<customwidget>
<class>QgsSpinBox</class>
<extends>QSpinBox</extends>
<header>qgsspinbox.h</header>
</customwidget>
<customwidget>
<class>QgsScrollArea</class>
<extends>QScrollArea</extends>
Expand Down
4 changes: 2 additions & 2 deletions src/ui/mesh/qgsmeshrenderervectorsettingswidgetbase.ui
Expand Up @@ -252,7 +252,7 @@
</widget>
</item>
<item row="1" column="1">
<widget class="QSpinBox" name="mYSpacingSpinBox">
<widget class="QgsSpinBox" name="mYSpacingSpinBox">
<property name="suffix">
<string> px</string>
</property>
Expand Down Expand Up @@ -561,7 +561,7 @@
</widget>
</item>
<item>
<widget class="QSpinBox" name="mTracesParticlesCountSpinBox">
<widget class="QgsSpinBox" name="mTracesParticlesCountSpinBox">
<property name="maximum">
<number>1000000</number>
</property>
Expand Down
7 changes: 6 additions & 1 deletion src/ui/numericformats/qgsbasicnumericformatwidgetbase.ui
Expand Up @@ -66,7 +66,7 @@
</widget>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="mDecimalsSpinBox">
<widget class="QgsSpinBox" name="mDecimalsSpinBox">
<property name="value">
<number>6</number>
</property>
Expand Down Expand Up @@ -125,6 +125,11 @@
<header>qgspanelwidget.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QgsSpinBox</class>
<extends>QSpinBox</extends>
<header>qgsspinbox.h</header>
</customwidget>
<customwidget>
<class>QgsFilterLineEdit</class>
<extends>QLineEdit</extends>
Expand Down
7 changes: 6 additions & 1 deletion src/ui/numericformats/qgsbearingnumericformatwidgetbase.ui
Expand Up @@ -28,7 +28,7 @@
</spacer>
</item>
<item row="1" column="1">
<widget class="QSpinBox" name="mDecimalsSpinBox">
<widget class="QgsSpinBox" name="mDecimalsSpinBox">
<property name="value">
<number>6</number>
</property>
Expand Down Expand Up @@ -61,6 +61,11 @@
</layout>
</widget>
<customwidgets>
<customwidget>
<class>QgsSpinBox</class>
<extends>QSpinBox</extends>
<header>qgsspinbox.h</header>
</customwidget>
<customwidget>
<class>QgsPanelWidget</class>
<extends>QWidget</extends>
Expand Down
7 changes: 6 additions & 1 deletion src/ui/numericformats/qgscurrencynumericformatwidgetbase.ui
Expand Up @@ -43,7 +43,7 @@
</widget>
</item>
<item row="2" column="1">
<widget class="QSpinBox" name="mDecimalsSpinBox">
<widget class="QgsSpinBox" name="mDecimalsSpinBox">
<property name="value">
<number>2</number>
</property>
Expand Down Expand Up @@ -92,6 +92,11 @@
</layout>
</widget>
<customwidgets>
<customwidget>
<class>QgsSpinBox</class>
<extends>QSpinBox</extends>
<header>qgsspinbox.h</header>
</customwidget>
<customwidget>
<class>QgsPanelWidget</class>
<extends>QWidget</extends>
Expand Down
Expand Up @@ -45,7 +45,7 @@
</widget>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="mDecimalsSpinBox">
<widget class="QgsSpinBox" name="mDecimalsSpinBox">
<property name="value">
<number>2</number>
</property>
Expand Down Expand Up @@ -78,6 +78,11 @@
</layout>
</widget>
<customwidgets>
<customwidget>
<class>QgsSpinBox</class>
<extends>QSpinBox</extends>
<header>qgsspinbox.h</header>
</customwidget>
<customwidget>
<class>QgsPanelWidget</class>
<extends>QWidget</extends>
Expand Down
Expand Up @@ -15,7 +15,7 @@
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="1">
<widget class="QSpinBox" name="mDecimalsSpinBox">
<widget class="QgsSpinBox" name="mDecimalsSpinBox">
<property name="value">
<number>6</number>
</property>
Expand Down
11 changes: 9 additions & 2 deletions src/ui/qgsaddattrdialogbase.ui
Expand Up @@ -87,7 +87,7 @@
</widget>
</item>
<item row="4" column="1">
<widget class="QSpinBox" name="mLength">
<widget class="QgsSpinBox" name="mLength">
<property name="toolTip">
<string>Total length of field (including the number of digits after the decimal place for decimal fields).&lt;br&gt;For example 123.45 requires a decimal field length of 5, and 123456 requires an integer field length of 6.</string>
</property>
Expand All @@ -107,7 +107,7 @@
</widget>
</item>
<item row="5" column="1">
<widget class="QSpinBox" name="mPrec">
<widget class="QgsSpinBox" name="mPrec">
<property name="toolTip">
<string>Maximum number of digits after the decimal place. For example 123.45 requires a field precision of 2.</string>
</property>
Expand Down Expand Up @@ -135,6 +135,13 @@
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>QgsSpinBox</class>
<extends>QSpinBox</extends>
<header>qgsspinbox.h</header>
</customwidget>
</customwidgets>
<layoutdefault spacing="6" margin="11"/>
<tabstops>
<tabstop>mNameEdit</tabstop>
Expand Down

0 comments on commit 602a775

Please sign in to comment.