]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #475 #451 Do not process EditingFinished slot.
authorsbh <sergey.belash@opencascade.com>
Fri, 17 Apr 2015 10:12:58 +0000 (13:12 +0300)
committersbh <sergey.belash@opencascade.com>
Fri, 17 Apr 2015 10:12:58 +0000 (13:12 +0300)
src/ModuleBase/ModuleBase_ParamSpinBox.cpp
src/ModuleBase/ModuleBase_ParamSpinBox.h

index 925b1cc94c8508545041d6b63677ae962331aa76..64e340fc082f5c6a4cf0f8179b7847af0b98eb85 100644 (file)
@@ -12,6 +12,7 @@
 #include <QRegExp>
 
 #include <string>
+#include <iostream>
 
 /*!
  \class ModuleBase_ParamSpinBox
@@ -62,9 +63,6 @@ void ModuleBase_ParamSpinBox::stepBy(int steps)
  */
 void ModuleBase_ParamSpinBox::connectSignalsAndSlots()
 {
-  connect(this, SIGNAL(editingFinished()),
-          this, SLOT(onEditingFinished()));
-
   connect(this, SIGNAL(valueChanged(const QString&)),
           this, SLOT(onTextChanged(const QString&)));
 
@@ -75,17 +73,6 @@ void ModuleBase_ParamSpinBox::connectSignalsAndSlots()
   //        this,       SIGNAL(textChanged(const QString&)));
 }
 
-/*!
- \brief This function is called when editing is finished.
- */
-void ModuleBase_ParamSpinBox::onEditingFinished()
-{
-  if (myTextValue.isNull())
-    myTextValue = text();
-
-  setText(myTextValue);
-}
-
 /*!
  \brief This function is called when value is changed.
  */
index 8d9811db054de42f0c70aea73fa73725c418cf73..acdfadf1a98547dc60afe639a3d6eef551255983 100644 (file)
@@ -48,7 +48,6 @@ signals:
   virtual void showEvent(QShowEvent*);
 
  protected slots:
-  void onEditingFinished();
   void onTextChanged(const QString&);
 
  private: