From eba47f8f0637f451e21348187591e1f1fd58ac74 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 2 Aug 2010 19:23:46 +0000 Subject: TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kpovmodeler/pmlineedits.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'kpovmodeler/pmlineedits.cpp') 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 #include -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( ); } -- cgit v1.2.1