From: asl Date: Wed, 15 Jun 2005 04:24:55 +0000 (+0000) Subject: The slot "onTextChanged" is disconnect, but value is updated in method value(). X-Git-Tag: T3_0_0_a4~115 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dea6eecafc297c284dfcf6d6ba81680f7a20f17e;p=modules%2Fgui.git The slot "onTextChanged" is disconnect, but value is updated in method value(). --- diff --git a/src/Qtx/QtxDblSpinBox.cxx b/src/Qtx/QtxDblSpinBox.cxx index 430901771..1a4405026 100755 --- a/src/Qtx/QtxDblSpinBox.cxx +++ b/src/Qtx/QtxDblSpinBox.cxx @@ -83,7 +83,7 @@ myPrecision( 0 ) rangeChange(); updateDisplay(); - connect( editor(), SIGNAL( textChanged( const QString& ) ), this, SLOT( onTextChanged( const QString& ) ) ); + //connect( editor(), SIGNAL( textChanged( const QString& ) ), this, SLOT( onTextChanged( const QString& ) ) ); } QtxDblSpinBox::QtxDblSpinBox( double min, double max, double step, QWidget* parent, const char* name ) @@ -100,7 +100,7 @@ myPrecision( 0 ) rangeChange(); updateDisplay(); - connect( editor(), SIGNAL( textChanged( const QString& ) ), this, SLOT( onTextChanged( const QString& ) ) ); + //connect( editor(), SIGNAL( textChanged( const QString& ) ), this, SLOT( onTextChanged( const QString& ) ) ); } QtxDblSpinBox::~QtxDblSpinBox() @@ -177,6 +177,8 @@ void QtxDblSpinBox::setLineStep( double step ) double QtxDblSpinBox::value() const { + QtxDblSpinBox* _this = ( QtxDblSpinBox* )this; + _this->clearFocus(); return myValue; }