Navigation Menu

Skip to content

Commit

Permalink
Useful tooltips for length/precision widgets
Browse files Browse the repository at this point in the history
Because *I* always get tripped up by these!

(cherry picked from commit 0a1d644)
  • Loading branch information
nyalldawson committed Mar 7, 2019
1 parent f0094ea commit 101c2f7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
18 changes: 16 additions & 2 deletions src/ui/qgsaddattrdialogbase.ui
Expand Up @@ -59,6 +59,9 @@
</item>
<item row="5" column="0">
<widget class="QLabel" name="mPrecLabel">
<property name="toolTip">
<string>Maximum number of digits after the decimal place. For example 123.45 requires a field precision of 2.</string>
</property>
<property name="text">
<string>Precision</string>
</property>
Expand All @@ -68,7 +71,11 @@
</widget>
</item>
<item row="4" column="1">
<widget class="QSpinBox" name="mLength"/>
<widget class="QSpinBox" 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>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="textLabel1_2">
Expand All @@ -81,10 +88,17 @@
</widget>
</item>
<item row="5" column="1">
<widget class="QSpinBox" name="mPrec"/>
<widget class="QSpinBox" 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>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="mLengthLabel">
<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>
<property name="text">
<string>Length</string>
</property>
Expand Down
11 changes: 10 additions & 1 deletion src/ui/qgsfieldcalculatorbase.ui
Expand Up @@ -169,6 +169,9 @@
</property>
<item row="5" column="3">
<widget class="QSpinBox" name="mOutputFieldPrecisionSpinBox">
<property name="toolTip">
<string>Maximum number of digits after the decimal place. For example 123.45 requires a field precision of 2.</string>
</property>
<property name="value">
<number>2</number>
</property>
Expand All @@ -186,6 +189,9 @@
</item>
<item row="5" column="0">
<widget class="QLabel" name="mOutputFieldWidthLabel">
<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>
<property name="text">
<string>Output field length</string>
</property>
Expand All @@ -200,7 +206,7 @@
<item row="5" column="1">
<widget class="QSpinBox" name="mOutputFieldWidthSpinBox">
<property name="toolTip">
<string>Length of complete output. For example 123,456 means 6 as field length.</string>
<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>
<property name="minimum">
<number>0</number>
Expand All @@ -225,6 +231,9 @@
</item>
<item row="5" column="2">
<widget class="QLabel" name="mOutputFieldPrecisionLabel">
<property name="toolTip">
<string>Maximum number of digits after the decimal place. For example 123.45 requires a field precision of 2.</string>
</property>
<property name="text">
<string>Precision</string>
</property>
Expand Down

0 comments on commit 101c2f7

Please sign in to comment.