Skip to content

Commit

Permalink
[TD] add missing signal/slot for decimals
Browse files Browse the repository at this point in the history
- also update some tooltips
  • Loading branch information
donovaly authored and WandererFan committed Mar 14, 2020
1 parent 4ce9fbc commit c7f8a5b
Showing 1 changed file with 33 additions and 10 deletions.
43 changes: 33 additions & 10 deletions src/Mod/TechDraw/Gui/DlgPrefsTechDraw3.ui
Expand Up @@ -48,7 +48,7 @@
</font>
</property>
<property name="toolTip">
<string>Character to use to indicate Diameter dimension</string>
<string>Character used to indicate diameter dimensions</string>
</property>
<property name="text">
<string>⌀</string>
Expand All @@ -66,14 +66,17 @@
</item>
<item row="3" column="2">
<widget class="Gui::PrefSpinBox" name="sbAltDecimals">
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Number of decimal places if not using Global Decimals</string>
<string>Number of decimals if 'Use Global Decimals' is not used</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
Expand All @@ -98,7 +101,7 @@
</sizepolicy>
</property>
<property name="toolTip">
<string>Use system setting for decimal places.</string>
<string>Use system setting for number of decimals</string>
</property>
<property name="text">
<string>Use Global Decimals</string>
Expand Down Expand Up @@ -135,7 +138,7 @@
</sizepolicy>
</property>
<property name="toolTip">
<string>Preferred arrowhead style</string>
<string>Arrowhead style</string>
</property>
<property name="currentIndex">
<number>-1</number>
Expand All @@ -157,14 +160,17 @@
</item>
<item row="4" column="2">
<widget class="Gui::PrefLineEdit" name="leformatSpec">
<property name="enabled">
<bool>true</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Custom format for Dimension text</string>
<string>Custom format for dimension text</string>
</property>
<property name="text">
<string>%.2f</string>
Expand Down Expand Up @@ -220,7 +226,7 @@
</sizepolicy>
</property>
<property name="toolTip">
<string>Dimension font size</string>
<string>Dimension text font size</string>
</property>
<property name="value" stdset="0">
<double>4.000000000000000</double>
Expand All @@ -242,7 +248,7 @@
</sizepolicy>
</property>
<property name="toolTip">
<string>Dimension arrowhead size</string>
<string>Arrowhead size</string>
</property>
<property name="value" stdset="0">
<double>5.000000000000000</double>
Expand Down Expand Up @@ -276,7 +282,7 @@
</sizepolicy>
</property>
<property name="toolTip">
<string>Preferred standard and style of drawing dimensional values</string>
<string>Standard to be used for dimensional values</string>
</property>
<property name="prefEntry" stdset="0">
<cstring>StandardAndStyle</cstring>
Expand Down Expand Up @@ -335,7 +341,7 @@
</sizepolicy>
</property>
<property name="toolTip">
<string>Append unit to Dimension text</string>
<string>Append unit to dimension values</string>
</property>
<property name="text">
<string>Show Units</string>
Expand Down Expand Up @@ -1058,5 +1064,22 @@
<resources>
<include location="Resources/TechDraw.qrc"/>
</resources>
<connections/>
<connections>
<connection>
<sender>cbGlobalDecimals</sender>
<signal>toggled(bool)</signal>
<receiver>sbAltDecimals</receiver>
<slot>setDisabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>108</x>
<y>71</y>
</hint>
<hint type="destinationlabel">
<x>338</x>
<y>127</y>
</hint>
</hints>
</connection>
</connections>
</ui>

0 comments on commit c7f8a5b

Please sign in to comment.