From e654398e46e37abf457b2b1122ab898d2c51c49f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:43:15 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- arts/gui/kde/kbutton_impl.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'arts/gui/kde/kbutton_impl.cpp') diff --git a/arts/gui/kde/kbutton_impl.cpp b/arts/gui/kde/kbutton_impl.cpp index 119e72e0..34c5791b 100644 --- a/arts/gui/kde/kbutton_impl.cpp +++ b/arts/gui/kde/kbutton_impl.cpp @@ -28,15 +28,15 @@ using namespace Arts; using namespace std; -KButtonMapper::KButtonMapper( KButton_impl *_impl, QPushButton *but ) - : QObject( but, "KButtonMapper" ) +KButtonMapper::KButtonMapper( KButton_impl *_impl, TQPushButton *but ) + : TQObject( but, "KButtonMapper" ) , impl( _impl ) , button( but ) { - connect( but, SIGNAL( pressed() ), this, SLOT( pressed() ) ); - connect( but, SIGNAL( released() ), this, SLOT( released() ) ); - connect( but, SIGNAL( toggled( bool ) ), this, SLOT( toggled( bool ) ) ); - connect( but, SIGNAL( clicked() ), this, SLOT( clicked() ) ); + connect( but, TQT_SIGNAL( pressed() ), this, TQT_SLOT( pressed() ) ); + connect( but, TQT_SIGNAL( released() ), this, TQT_SLOT( released() ) ); + connect( but, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( toggled( bool ) ) ); + connect( but, TQT_SIGNAL( clicked() ), this, TQT_SLOT( clicked() ) ); } void KButtonMapper::pressed() @@ -62,11 +62,11 @@ void KButtonMapper::clicked() impl->emitClicked(); } -KButton_impl::KButton_impl( QPushButton * widget ) - : KWidget_impl( widget ? widget : new QPushButton( 0 ) ) +KButton_impl::KButton_impl( TQPushButton * widget ) + : KWidget_impl( widget ? widget : new TQPushButton( 0 ) ) , _clicked( false ) { - _qpushbutton = static_cast( _qwidget ); + _qpushbutton = static_cast( _qwidget ); ( void )new KButtonMapper( this, _qpushbutton ); } @@ -94,7 +94,7 @@ string KButton_impl::text() void KButton_impl::text(const string& newText) { - _qpushbutton->setText(QString::fromUtf8(newText.c_str())); + _qpushbutton->setText(TQString::fromUtf8(newText.c_str())); } bool KButton_impl::toggle() -- cgit v1.2.3