Salome HOME
#1083 errors in parameter
[modules/shaper.git] / src / ModuleBase / ModuleBase_DoubleSpinBox.cpp
index 94387b2eca027b7ad9b197b2694d13a0121ab9c0..745592709c31534aa7b88a098eb42ceefe3b0cee 100644 (file)
@@ -59,7 +59,7 @@ const double PSEUDO_ZERO = 1.e-20;
 ModuleBase_DoubleSpinBox::ModuleBase_DoubleSpinBox(QWidget* theParent, int thePrecision)
     : QDoubleSpinBox(theParent),
       myCleared(false),
-      myIsModified(false),
+      //myIsModified(false),
       myIsEmitKeyPressEvent(false)
 {
   // VSR 01/07/2010: Disable thousands separator for spin box
@@ -217,15 +217,6 @@ void ModuleBase_DoubleSpinBox::keyPressEvent(QKeyEvent *theEvent)
   QDoubleSpinBox::keyPressEvent(theEvent);
 }
 
-bool ModuleBase_DoubleSpinBox::focusNextPrevChild(bool theIsNext)
-{
-  myIsModified = false;
-
-  emit valueStored();
-  emit focusNextPrev();
-  return QDoubleSpinBox::focusNextPrevChild(theIsNext);
-}
-
 /*!
  \brief Perform \a steps increment/decrement steps.
 
@@ -336,10 +327,10 @@ QValidator::State ModuleBase_DoubleSpinBox::validate(QString& str, int& pos) con
 void ModuleBase_DoubleSpinBox::onTextChanged(const QString& )
 {
   myCleared = false;
-  myIsModified = true;
+  //myIsModified = true;
 }
 
-void ModuleBase_DoubleSpinBox::onValueChanged(const QString& theValue)
+/*void ModuleBase_DoubleSpinBox::onValueChanged(const QString& theValue)
 {
   myIsModified = true;
 }
@@ -352,7 +343,7 @@ bool ModuleBase_DoubleSpinBox::isModified() const
 void ModuleBase_DoubleSpinBox::clearModified()
 {
   myIsModified = false;
-}
+}*/
 
 bool ModuleBase_DoubleSpinBox::enableKeyPressEvent(const bool& theEnable)
 {