]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/XGUI/XGUI_DeflectionDialog.cpp
Salome HOME
Issue #1660: Ability to change the deflection coefficient
[modules/shaper.git] / src / XGUI / XGUI_DeflectionDialog.cpp
index 11f93ff8d2c1803cd52ab3025ccca2c2d7c56989..158fdab991d08493bf90bdc57014f09a0c60831c 100755 (executable)
@@ -8,7 +8,7 @@
 
 #include <ModelAPI_Tools.h>
 
-#include <QDoubleSpinBox>
+#include <ModuleBase_DoubleSpinBox.h>
 
 #include <QLabel>
 #include <QButtonGroup>
@@ -22,7 +22,8 @@ XGUI_DeflectionDialog::XGUI_DeflectionDialog(QWidget* theParent)
   setWindowTitle("Deflection");
   QGridLayout* aLay = new QGridLayout(this);
 
-  myDeflection = new QDoubleSpinBox(this);
+  myDeflection = new ModuleBase_DoubleSpinBox(this);
+  myDeflection->setDecimals(12);
   myDeflection->setRange(0, 1);
   aLay->addWidget(new QLabel("Deviation", this), 0, 0);
   aLay->addWidget(myDeflection, 0, 1);