diff --git a/src/Mod/Part/Gui/CommandSimple.cpp b/src/Mod/Part/Gui/CommandSimple.cpp index fc67eeb8f..a4c78e42d 100644 --- a/src/Mod/Part/Gui/CommandSimple.cpp +++ b/src/Mod/Part/Gui/CommandSimple.cpp @@ -74,11 +74,11 @@ void CmdPartSimpleCylinder::activated(int iMsg) ".Shape=Part.makeCylinder(%f,%f," "Base.Vector(%f,%f,%f)," "Base.Vector(%f,%f,%f))" - ,dlg.radius->value() - ,dlg.length->value() - ,dlg.xPos->value() - ,dlg.yPos->value() - ,dlg.zPos->value() + ,dlg.radius->value().getValue() + ,dlg.length->value().getValue() + ,dlg.xPos->value().getValue() + ,dlg.yPos->value().getValue() + ,dlg.zPos->value().getValue() ,dir.x,dir.y,dir.z); commitCommand(); updateActive(); diff --git a/src/Mod/Part/Gui/DlgPartBox.ui b/src/Mod/Part/Gui/DlgPartBox.ui index d3824966b..d5ee43f58 100644 --- a/src/Mod/Part/Gui/DlgPartBox.ui +++ b/src/Mod/Part/Gui/DlgPartBox.ui @@ -27,7 +27,10 @@ 6 - + + + mm + -2147480000.000000000000000 @@ -44,7 +47,10 @@ - + + + mm + -2147480000.000000000000000 @@ -54,7 +60,10 @@ - + + + mm + -2147480000.000000000000000 @@ -107,7 +116,10 @@ 6 - + + + mm + 2147480000.000000000000000 @@ -117,7 +129,10 @@ - + + + mm + 2147480000.000000000000000 @@ -127,7 +142,10 @@ - + + + mm + 2147480000.000000000000000 @@ -170,6 +188,13 @@ + + + Gui::QuantitySpinBox + QWidget +
Gui/QuantitySpinBox.h
+
+
xPos yPos diff --git a/src/Mod/Part/Gui/DlgPartCylinder.ui b/src/Mod/Part/Gui/DlgPartCylinder.ui index 260e130e2..7a932d05d 100644 --- a/src/Mod/Part/Gui/DlgPartCylinder.ui +++ b/src/Mod/Part/Gui/DlgPartCylinder.ui @@ -62,7 +62,10 @@
- + + + mm + -2147480000.000000000000000 @@ -72,7 +75,10 @@ - + + + mm + -2147480000.000000000000000 @@ -82,7 +88,10 @@ - + + + mm + -2147480000.000000000000000 @@ -121,7 +130,10 @@ - + + + mm + 2147480000.000000000000000 @@ -131,7 +143,10 @@ - + + + mm + 2147480000.000000000000000 @@ -153,6 +168,13 @@ + + + Gui::QuantitySpinBox + QWidget +
Gui/QuantitySpinBox.h
+
+
xPos yPos diff --git a/src/Mod/Part/Gui/DlgPartCylinderImp.cpp b/src/Mod/Part/Gui/DlgPartCylinderImp.cpp index ae926ff70..c6e829668 100644 --- a/src/Mod/Part/Gui/DlgPartCylinderImp.cpp +++ b/src/Mod/Part/Gui/DlgPartCylinderImp.cpp @@ -39,9 +39,6 @@ using namespace PartGui; DlgPartCylinderImp::DlgPartCylinderImp(QWidget* parent, Qt::WindowFlags fl) : Gui::LocationInterface(parent, fl) { - QList list = this->findChildren(); - for (QList::iterator it = list.begin(); it != list.end(); ++it) - (*it)->setDecimals(Base::UnitsApi::getDecimals()); } /*