PartDesign: [skip ci] fix wrong property values in UI file

set step size of angle property to 1.0
This commit is contained in:
wmayer
2020-05-24 12:18:19 +02:00
parent f4b169e811
commit e3a2f7f76d
2 changed files with 7 additions and 7 deletions

View File

@@ -54,7 +54,7 @@ PROPERTY_SOURCE(PartDesign::Chamfer, PartDesign::DressUp)
const char* ChamferTypeEnums[] = {"Equal distance", "Two distances", "Distance and Angle", NULL};
const App::PropertyQuantityConstraint::Constraints floatSize = {0.0,FLT_MAX,0.1};
const App::PropertyAngle::Constraints floatAngle = {0.0,180.0,0.1};
const App::PropertyAngle::Constraints floatAngle = {0.0,180.0,1.0};
static App::DocumentObjectExecReturn *validateParameters(int chamferType, double size, double size2, double angle);

View File

@@ -123,7 +123,7 @@ click again to end selection</string>
<item row="0" column="1">
<widget class="Gui::QuantitySpinBox" name="chamferSize" native="true">
<property name="value">
<number>1.000000000000000</number>
<double>1.000000000000000</double>
</property>
</widget>
</item>
@@ -159,7 +159,7 @@ click again to end selection</string>
<item row="0" column="1">
<widget class="Gui::QuantitySpinBox" name="chamferSize2" native="true">
<property name="value">
<number>1.000000000000000</number>
<double>1.000000000000000</double>
</property>
</widget>
</item>
@@ -189,16 +189,16 @@ click again to end selection</string>
<item row="0" column="1">
<widget class="Gui::QuantitySpinBox" name="chamferAngle" native="true">
<property name="minimum">
<number>0.000000000000000</number>
<double>0.000000000000000</double>
</property>
<property name="maximum">
<number>180.000000000000000</number>
<double>180.000000000000000</double>
</property>
<property name="singleStep">
<number>1.000000000000000</number>
<double>1.000000000000000</double>
</property>
<property name="value">
<number>45.000000000000000</number>
<double>45.000000000000000</double>
</property>
</widget>
</item>