From dea6eecafc297c284dfcf6d6ba81680f7a20f17e Mon Sep 17 00:00:00 2001 From: asl Date: Wed, 15 Jun 2005 04:24:55 +0000 Subject: [PATCH] The slot "onTextChanged" is disconnect, but value is updated in method value(). --- src/Qtx/QtxDblSpinBox.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } -- 2.39.2