From d8cc8bdfa7fa624a526d5aa1626974e1444cb799 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 27 May 2011 19:21:21 +0000 Subject: TQt4 port k3b This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k3b@1233803 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libk3b/tools/k3bradioaction.cpp | 52 ++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'libk3b/tools/k3bradioaction.cpp') diff --git a/libk3b/tools/k3bradioaction.cpp b/libk3b/tools/k3bradioaction.cpp index 08fbece..5315dcd 100644 --- a/libk3b/tools/k3bradioaction.cpp +++ b/libk3b/tools/k3bradioaction.cpp @@ -17,57 +17,57 @@ #include -K3bRadioAction::K3bRadioAction( const QString& text, const KShortcut& cut, - QObject* parent, const char* name ) - : KToggleAction( text, cut, parent, name ), +K3bRadioAction::K3bRadioAction( const TQString& text, const KShortcut& cut, + TQObject* tqparent, const char* name ) + : KToggleAction( text, cut, tqparent, name ), m_alwaysEmit(false) { } -K3bRadioAction::K3bRadioAction( const QString& text, const KShortcut& cut, - const QObject* receiver, const char* slot, - QObject* parent, const char* name ) - : KToggleAction( text, cut, receiver, slot, parent, name ), +K3bRadioAction::K3bRadioAction( const TQString& text, const KShortcut& cut, + const TQObject* receiver, const char* slot, + TQObject* tqparent, const char* name ) + : KToggleAction( text, cut, receiver, slot, tqparent, name ), m_alwaysEmit(false) { } -K3bRadioAction::K3bRadioAction( const QString& text, const QIconSet& pix, +K3bRadioAction::K3bRadioAction( const TQString& text, const TQIconSet& pix, const KShortcut& cut, - QObject* parent, const char* name ) - : KToggleAction( text, pix, cut, parent, name ), + TQObject* tqparent, const char* name ) + : KToggleAction( text, pix, cut, tqparent, name ), m_alwaysEmit(false) { } -K3bRadioAction::K3bRadioAction( const QString& text, const QString& pix, +K3bRadioAction::K3bRadioAction( const TQString& text, const TQString& pix, const KShortcut& cut, - QObject* parent, const char* name ) - : KToggleAction( text, pix, cut, parent, name ), + TQObject* tqparent, const char* name ) + : KToggleAction( text, pix, cut, tqparent, name ), m_alwaysEmit(false) { } -K3bRadioAction::K3bRadioAction( const QString& text, const QIconSet& pix, +K3bRadioAction::K3bRadioAction( const TQString& text, const TQIconSet& pix, const KShortcut& cut, - const QObject* receiver, const char* slot, - QObject* parent, const char* name ) - : KToggleAction( text, pix, cut, receiver, slot, parent, name ), + const TQObject* receiver, const char* slot, + TQObject* tqparent, const char* name ) + : KToggleAction( text, pix, cut, receiver, slot, tqparent, name ), m_alwaysEmit(false) { } -K3bRadioAction::K3bRadioAction( const QString& text, const QString& pix, +K3bRadioAction::K3bRadioAction( const TQString& text, const TQString& pix, const KShortcut& cut, - const QObject* receiver, const char* slot, - QObject* parent, const char* name ) - : KToggleAction( text, pix, cut, receiver, slot, parent, name ), + const TQObject* receiver, const char* slot, + TQObject* tqparent, const char* name ) + : KToggleAction( text, pix, cut, receiver, slot, tqparent, name ), m_alwaysEmit(false) { } -K3bRadioAction::K3bRadioAction( QObject* parent, const char* name ) - : KToggleAction( parent, name ), +K3bRadioAction::K3bRadioAction( TQObject* tqparent, const char* name ) + : KToggleAction( tqparent, name ), m_alwaysEmit(false) { } @@ -78,12 +78,12 @@ void K3bRadioAction::slotActivated() if( m_alwaysEmit ) emit activated(); - const QObject *senderObj = sender(); + const TQObject *senderObj = TQT_TQOBJECT_CONST(const_cast(sender())); - if ( !senderObj || !::qt_cast( senderObj ) ) + if ( !senderObj || !::tqqt_cast( senderObj ) ) return; - const_cast( static_cast( senderObj ) )->on( true ); + const_cast( static_cast( TQT_TQWIDGET_CONST(senderObj) ) )->on( true ); return; } -- cgit v1.2.3