Skip to content

Commit 5e21641

Browse files
myarjunarm-kuhn
authored andcommitted
use QgsSpinBox instead of QSpinBox and add tooltip
1 parent 18a97a7 commit 5e21641

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/ui/qgsoptionsbase.ui

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3440,7 +3440,11 @@
34403440
</widget>
34413441
</item>
34423442
<item row="0" column="1">
3443-
<widget class="QSpinBox" name="spinZoomFactor">
3443+
<widget class="QgsSpinBox" name="spinZoomFactor">
3444+
<property name="toolTip">
3445+
<string>Specifies the change in zoom level with each move of the mouse wheel.
3446+
The bigger the number, the faster zooming with the mouse wheel will be.</string>
3447+
</property>
34443448
<property name="suffix">
34453449
<string>%</string>
34463450
</property>
@@ -3456,6 +3460,9 @@
34563460
<property name="value">
34573461
<number>200</number>
34583462
</property>
3463+
<property name="showClearButton" stdset="100">
3464+
<bool>true</bool>
3465+
</property>
34593466
</widget>
34603467
</item>
34613468
</layout>
@@ -5480,6 +5487,11 @@
54805487
<header>qgsautheditorwidgets.h</header>
54815488
<container>1</container>
54825489
</customwidget>
5490+
<customwidget>
5491+
<class>QgsSpinBox</class>
5492+
<extends>QSpinBox</extends>
5493+
<header>qgsspinbox.h</header>
5494+
</customwidget>
54835495
</customwidgets>
54845496
<tabstops>
54855497
<tabstop>mOptionsListWidget</tabstop>

0 commit comments

Comments
 (0)