Skip to content

Commit 3b811bd

Browse files
DelazJnyalldawson
authored andcommitted
Add more conversion to Qgs(Double)SpinBox
1 parent fd8a1e7 commit 3b811bd

File tree

6 files changed

+34
-11
lines changed

6 files changed

+34
-11
lines changed

src/plugins/geometry_checker/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ INCLUDE_DIRECTORIES(
4545
${CMAKE_SOURCE_DIR}/src/core/effects
4646
${CMAKE_SOURCE_DIR}/src/core/providers/ogr
4747
${CMAKE_SOURCE_DIR}/src/gui
48+
${CMAKE_SOURCE_DIR}/src/gui/editorwidgets
4849
${CMAKE_SOURCE_DIR}/src/analysis/vector/geometry_checker
4950
${CMAKE_SOURCE_DIR}/src/plugins
5051
${CMAKE_SOURCE_DIR}/external

src/plugins/geometry_checker/qgsgeometrycheckersetuptab.ui

+18-8
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@
353353
<number>2</number>
354354
</property>
355355
<item row="1" column="2">
356-
<widget class="QDoubleSpinBox" name="doubleSpinBoxAngle">
356+
<widget class="QgsDoubleSpinBox" name="doubleSpinBoxAngle">
357357
<property name="decimals">
358358
<number>6</number>
359359
</property>
@@ -377,7 +377,7 @@
377377
</widget>
378378
</item>
379379
<item row="2" column="2">
380-
<widget class="QDoubleSpinBox" name="doubleSpinBoxArea">
380+
<widget class="QgsDoubleSpinBox" name="doubleSpinBoxArea">
381381
<property name="decimals">
382382
<number>6</number>
383383
</property>
@@ -387,7 +387,7 @@
387387
</widget>
388388
</item>
389389
<item row="0" column="2">
390-
<widget class="QDoubleSpinBox" name="doubleSpinBoxSegmentLength">
390+
<widget class="QgsDoubleSpinBox" name="doubleSpinBoxSegmentLength">
391391
<property name="decimals">
392392
<number>6</number>
393393
</property>
@@ -432,7 +432,7 @@
432432
<number>0</number>
433433
</property>
434434
<item row="1" column="2">
435-
<widget class="QDoubleSpinBox" name="doubleSpinBoxSliverArea">
435+
<widget class="QgsDoubleSpinBox" name="doubleSpinBoxSliverArea">
436436
<property name="enabled">
437437
<bool>false</bool>
438438
</property>
@@ -471,7 +471,7 @@
471471
</widget>
472472
</item>
473473
<item row="0" column="2">
474-
<widget class="QDoubleSpinBox" name="doubleSpinBoxSliverThinness">
474+
<widget class="QgsDoubleSpinBox" name="doubleSpinBoxSliverThinness">
475475
<property name="decimals">
476476
<number>0</number>
477477
</property>
@@ -531,7 +531,7 @@
531531
</widget>
532532
</item>
533533
<item row="3" column="1">
534-
<widget class="QDoubleSpinBox" name="doubleSpinBoxGapArea">
534+
<widget class="QgsDoubleSpinBox" name="doubleSpinBoxGapArea">
535535
<property name="decimals">
536536
<number>6</number>
537537
</property>
@@ -568,7 +568,7 @@
568568
</widget>
569569
</item>
570570
<item row="2" column="1">
571-
<widget class="QDoubleSpinBox" name="doubleSpinBoxOverlapArea">
571+
<widget class="QgsDoubleSpinBox" name="doubleSpinBoxOverlapArea">
572572
<property name="decimals">
573573
<number>6</number>
574574
</property>
@@ -664,7 +664,7 @@
664664
<number>2</number>
665665
</property>
666666
<item row="0" column="1">
667-
<widget class="QSpinBox" name="spinBoxTolerance">
667+
<widget class="QgsSpinBox" name="spinBoxTolerance">
668668
<property name="prefix">
669669
<string notr="true">1E-</string>
670670
</property>
@@ -892,6 +892,16 @@
892892
</layout>
893893
</widget>
894894
<customwidgets>
895+
<customwidget>
896+
<class>QgsSpinBox</class>
897+
<extends>QSpinBox</extends>
898+
<header>qgsspinbox.h</header>
899+
</customwidget>
900+
<customwidget>
901+
<class>QgsDoubleSpinBox</class>
902+
<extends>QDoubleSpinBox</extends>
903+
<header>qgsdoublespinbox.h</header>
904+
</customwidget>
895905
<customwidget>
896906
<class>QgsVScrollArea</class>
897907
<extends>QScrollArea</extends>

src/providers/delimitedtext/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ INCLUDE_DIRECTORIES(
2626
${CMAKE_SOURCE_DIR}/src/core/metadata
2727
${CMAKE_SOURCE_DIR}/src/core/symbology
2828
${CMAKE_SOURCE_DIR}/src/gui
29+
${CMAKE_SOURCE_DIR}/src/gui/editorwidgets
2930
${CMAKE_SOURCE_DIR}/external
3031
${CMAKE_SOURCE_DIR}/external/nlohmann
3132

src/providers/wms/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ INCLUDE_DIRECTORIES(
3030
${CMAKE_SOURCE_DIR}/src/core/symbology
3131
${CMAKE_SOURCE_DIR}/src/gui
3232
${CMAKE_SOURCE_DIR}/src/gui/auth
33+
${CMAKE_SOURCE_DIR}/src/gui/editorwidgets
3334
${CMAKE_SOURCE_DIR}/external
3435
${CMAKE_SOURCE_DIR}/external/nlohmann
3536

src/ui/qgsdelimitedtextsourceselectbase.ui

+6-1
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@
660660
</widget>
661661
</item>
662662
<item>
663-
<widget class="QSpinBox" name="rowCounter">
663+
<widget class="QgsSpinBox" name="rowCounter">
664664
<property name="minimumSize">
665665
<size>
666666
<width>0</width>
@@ -1406,6 +1406,11 @@
14061406
</widget>
14071407
<layoutdefault spacing="6" margin="11"/>
14081408
<customwidgets>
1409+
<customwidget>
1410+
<class>QgsSpinBox</class>
1411+
<extends>QSpinBox</extends>
1412+
<header>qgsspinbox.h</header>
1413+
</customwidget>
14091414
<customwidget>
14101415
<class>QgsCollapsibleGroupBox</class>
14111416
<extends>QGroupBox</extends>

src/ui/qgsxyzconnectiondialog.ui

+7-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
</widget>
4949
</item>
5050
<item row="8" column="2">
51-
<widget class="QSpinBox" name="mSpinZMax">
51+
<widget class="QgsSpinBox" name="mSpinZMax">
5252
<property name="sizePolicy">
5353
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
5454
<horstretch>0</horstretch>
@@ -139,7 +139,7 @@
139139
</widget>
140140
</item>
141141
<item row="4" column="2">
142-
<widget class="QSpinBox" name="mSpinZMin">
142+
<widget class="QgsSpinBox" name="mSpinZMin">
143143
<property name="sizePolicy">
144144
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
145145
<horstretch>0</horstretch>
@@ -196,6 +196,11 @@
196196
<header>auth/qgsauthsettingswidget.h</header>
197197
<container>1</container>
198198
</customwidget>
199+
<customwidget>
200+
<class>QgsSpinBox</class>
201+
<extends>QSpinBox</extends>
202+
<header>qgsspinbox.h</header>
203+
</customwidget>
199204
</customwidgets>
200205
<tabstops>
201206
<tabstop>mEditName</tabstop>

0 commit comments

Comments
 (0)