diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
commit | eba47f8f0637f451e21348187591e1f1fd58ac74 (patch) | |
tree | 448f10b95c656604acc331a3236c1e59bde5c1ad /kpovmodeler/pmlineedits.cpp | |
parent | c7e8736c69373f48b0401319757c742e8607431a (diff) | |
download | tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip |
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpovmodeler/pmlineedits.cpp')
-rw-r--r-- | kpovmodeler/pmlineedits.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kpovmodeler/pmlineedits.cpp b/kpovmodeler/pmlineedits.cpp index 05124d75..19391338 100644 --- a/kpovmodeler/pmlineedits.cpp +++ b/kpovmodeler/pmlineedits.cpp @@ -19,8 +19,8 @@ #include <kmessagebox.h> #include <klocale.h> -PMFloatEdit::PMFloatEdit( QWidget* parent, const char* name /*= 0*/ ) - : QLineEdit( parent, name ) +PMFloatEdit::PMFloatEdit( TQWidget* parent, const char* name /*= 0*/ ) + : TQLineEdit( parent, name ) { m_bCheckLower = false; m_bCheckUpper = false; @@ -29,8 +29,8 @@ PMFloatEdit::PMFloatEdit( QWidget* parent, const char* name /*= 0*/ ) m_lowerOp = OpGreaterEqual; m_upperOp = OpLessEqual; - connect( this, SIGNAL( textChanged( const QString& ) ), - SLOT( slotEditTextChanged( const QString& ) ) ); + connect( this, TQT_SIGNAL( textChanged( const TQString& ) ), + TQT_SLOT( slotEditTextChanged( const TQString& ) ) ); } void PMFloatEdit::setValidation( bool checkLower, double lowerValue, @@ -114,13 +114,13 @@ double PMFloatEdit::value( ) const void PMFloatEdit::setValue( double d, int precision ) { - QString str; + TQString str; str.setNum( d, 'g', precision ); setText( str ); } -void PMFloatEdit::slotEditTextChanged( const QString& /*t*/ ) +void PMFloatEdit::slotEditTextChanged( const TQString& /*t*/ ) { emit dataChanged( ); } @@ -129,16 +129,16 @@ void PMFloatEdit::slotEditTextChanged( const QString& /*t*/ ) -PMIntEdit::PMIntEdit( QWidget* parent, const char* name /*= 0*/ ) - : QLineEdit( parent, name ) +PMIntEdit::PMIntEdit( TQWidget* parent, const char* name /*= 0*/ ) + : TQLineEdit( parent, name ) { m_bCheckLower = false; m_bCheckUpper = false; m_lowerValue = 0; m_upperValue = 0; - connect( this, SIGNAL( textChanged( const QString& ) ), - SLOT( slotEditTextChanged( const QString& ) ) ); + connect( this, TQT_SIGNAL( textChanged( const TQString& ) ), + TQT_SLOT( slotEditTextChanged( const TQString& ) ) ); } void PMIntEdit::setValidation( bool checkLower, int lowerValue, @@ -163,7 +163,7 @@ bool PMIntEdit::isDataValid( ) if( ok ) { i = ( int ) d; - QString str; + TQString str; bool b = signalsBlocked( ); blockSignals( true ); str.setNum( i ); @@ -216,13 +216,13 @@ int PMIntEdit::value( ) const void PMIntEdit::setValue( int i ) { - QString str; + TQString str; str.setNum( i ); setText( str ); } -void PMIntEdit::slotEditTextChanged( const QString& /*t*/ ) +void PMIntEdit::slotEditTextChanged( const TQString& /*t*/ ) { emit dataChanged( ); } |