Skip to content
Permalink
Browse files

Useful tooltips for length/precision widgets

Because *I* always get tripped up by these!

(cherry picked from commit 0a1d644)
  • Loading branch information
nyalldawson committed Mar 5, 2019
1 parent 3260f5d commit 29bb9de209cceb2dcc7e46bd69b21482a8979bd1
Showing with 26 additions and 3 deletions.
  1. +16 −2 src/ui/qgsaddattrdialogbase.ui
  2. +10 −1 src/ui/qgsfieldcalculatorbase.ui
@@ -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>
@@ -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">
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>

0 comments on commit 29bb9de

Please sign in to comment.
You can’t perform that action at this time.