[TD]fix Preferences

This commit is contained in:
wandererfan
2020-02-04 18:45:00 -05:00
committed by WandererFan
parent 992dc49ece
commit 0532df4937
3 changed files with 11 additions and 11 deletions

View File

@@ -283,8 +283,8 @@ int DrawViewBalloon::prefEnd(void) const
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter().
GetGroup("BaseApp")->GetGroup("Preferences")->
GetGroup("Mod/TechDraw/Decorations");
int length = hGrp->GetFloat("BalloonArrow", 5.0);
return length;
int end = hGrp->GetInt("BalloonArrow", 0);
return end;
}
/*

View File

@@ -85,12 +85,12 @@
</item>
<item>
<property name="text">
<string>Custom</string>
<string>Auto</string>
</property>
</item>
<item>
<property name="text">
<string>Auto</string>
<string>Custom</string>
</property>
</item>
</widget>

View File

@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>439</width>
<height>864</height>
<width>448</width>
<height>1152</height>
</rect>
</property>
<property name="sizePolicy">
@@ -284,7 +284,7 @@
</widget>
</item>
<item row="5" column="2">
<widget class="Gui::PrefUnitSpinBox" name="plsb_FontSize" native="true">
<widget class="Gui::PrefUnitSpinBox" name="plsb_FontSize">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
@@ -294,7 +294,7 @@
<property name="toolTip">
<string>Dimension font size</string>
</property>
<property name="value" stdset="0">
<property name="value">
<double>4.000000000000000</double>
</property>
<property name="prefEntry" stdset="0">
@@ -306,7 +306,7 @@
</widget>
</item>
<item row="8" column="2">
<widget class="Gui::PrefUnitSpinBox" name="plsb_ArrowSize" native="true">
<widget class="Gui::PrefUnitSpinBox" name="plsb_ArrowSize">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
@@ -316,7 +316,7 @@
<property name="toolTip">
<string>Dimension arrowhead size</string>
</property>
<property name="value" stdset="0">
<property name="value">
<double>5.000000000000000</double>
</property>
<property name="prefEntry" stdset="0">
@@ -627,7 +627,7 @@
</sizepolicy>
</property>
<property name="toolTip">
<string>Shape of balloon &quot;bubble&quot;.</string>
<string>Type of arrowhead on leader</string>
</property>
<property name="prefEntry" stdset="0">
<cstring>BalloonArrow</cstring>