Salome HOME
Apply widget value change by enter/tab event.
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetIntValue.cpp
index 6778b372c0212a0480dd77a3bde924a7bd761df7..622600ee2df9700f1cf06230e760eaa0f7272651 100644 (file)
@@ -84,7 +84,9 @@ ModuleBase_WidgetIntValue::ModuleBase_WidgetIntValue(QWidget* theParent,
   mySpinBox->setToolTip(aTTip);
 
   aControlLay->addRow(myLabel, mySpinBox);
-  connect(mySpinBox, SIGNAL(valueChanged(int)), this, SIGNAL(valuesChanged()));
+  // Apply widget value change by enter/tab event.
+  //connect(mySpinBox, SIGNAL(valueChanged(int)), this, SIGNAL(valuesChanged()));
+  connect(mySpinBox, SIGNAL(editingFinished()), this, SIGNAL(valuesChanged()));
 }
 
 ModuleBase_WidgetIntValue::~ModuleBase_WidgetIntValue()