From: sbh Date: Fri, 17 Apr 2015 10:12:58 +0000 (+0300) Subject: Issue #475 #451 Do not process EditingFinished slot. X-Git-Tag: V_1.1.0~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ee5964f120cd964f6d7f3bf8147408da023e596e;p=modules%2Fshaper.git Issue #475 #451 Do not process EditingFinished slot. --- diff --git a/src/ModuleBase/ModuleBase_ParamSpinBox.cpp b/src/ModuleBase/ModuleBase_ParamSpinBox.cpp index 925b1cc94..64e340fc0 100644 --- a/src/ModuleBase/ModuleBase_ParamSpinBox.cpp +++ b/src/ModuleBase/ModuleBase_ParamSpinBox.cpp @@ -12,6 +12,7 @@ #include #include +#include /*! \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. */ diff --git a/src/ModuleBase/ModuleBase_ParamSpinBox.h b/src/ModuleBase/ModuleBase_ParamSpinBox.h index 8d9811db0..acdfadf1a 100644 --- a/src/ModuleBase/ModuleBase_ParamSpinBox.h +++ b/src/ModuleBase/ModuleBase_ParamSpinBox.h @@ -48,7 +48,6 @@ signals: virtual void showEvent(QShowEvent*); protected slots: - void onEditingFinished(); void onTextChanged(const QString&); private: