summaryrefslogtreecommitdiffstats
path: root/buildtools/autotools/autotoolsaction.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /buildtools/autotools/autotoolsaction.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'buildtools/autotools/autotoolsaction.cpp')
-rw-r--r--buildtools/autotools/autotoolsaction.cpp74
1 files changed, 37 insertions, 37 deletions
diff --git a/buildtools/autotools/autotoolsaction.cpp b/buildtools/autotools/autotoolsaction.cpp
index 63b38762..b5191b37 100644
--- a/buildtools/autotools/autotoolsaction.cpp
+++ b/buildtools/autotools/autotoolsaction.cpp
@@ -13,9 +13,9 @@
*/
#include "autotoolsaction.h"
-#include <qtoolbutton.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
+#include <tqtoolbutton.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
#include <kapplication.h>
#include <kdebug.h>
#include <kiconloader.h>
@@ -24,79 +24,79 @@ AutoToolsAction::~AutoToolsAction()
{
}
-AutoToolsAction::AutoToolsAction( const QString& text, const KShortcut& cut,
- const QObject* receiver, const char* slot,
+AutoToolsAction::AutoToolsAction( const TQString& text, const KShortcut& cut,
+ const TQObject* receiver, const char* slot,
KActionCollection* parent, const char* name )
: KAction( text, cut, receiver, slot, parent, name )
{
}
-AutoToolsAction::AutoToolsAction( const QString& text, const QIconSet& pix, const KShortcut& cut,
- const QObject* receiver, const char* slot,
+AutoToolsAction::AutoToolsAction( const TQString& text, const TQIconSet& pix, const KShortcut& cut,
+ const TQObject* receiver, const char* slot,
KActionCollection* parent, const char* name )
: KAction( text, pix, cut, receiver, slot, parent, name )
{
}
-AutoToolsAction::AutoToolsAction( const QString& text, const QString& pix, const KShortcut& cut,
- const QObject* receiver, const char* slot,
+AutoToolsAction::AutoToolsAction( const TQString& text, const TQString& pix, const KShortcut& cut,
+ const TQObject* receiver, const char* slot,
KActionCollection* parent, const char* name )
: KAction( text, pix, cut, receiver, slot, parent, name )
{
}
AutoToolsAction::AutoToolsAction( const KGuiItem& item, const KShortcut & cut,
- const QObject* receiver, const char* slot,
+ const TQObject* receiver, const char* slot,
KActionCollection* parent, const char* name )
: KAction( item, cut, receiver, slot, parent, name )
{
}
-AutoToolsAction::AutoToolsAction( const QString& text, const KShortcut& cut,
- QObject* parent, const char* name )
+AutoToolsAction::AutoToolsAction( const TQString& text, const KShortcut& cut,
+ TQObject* parent, const char* name )
: KAction( text, cut, parent, name )
{
}
-AutoToolsAction::AutoToolsAction( const QString& text, const KShortcut& cut,
- const QObject* receiver, const char* slot,
- QObject* parent, const char* name )
+AutoToolsAction::AutoToolsAction( const TQString& text, const KShortcut& cut,
+ const TQObject* receiver, const char* slot,
+ TQObject* parent, const char* name )
: KAction( text, cut, receiver, slot, parent, name )
{
}
-AutoToolsAction::AutoToolsAction( const QString& text, const QIconSet& pix,
- const KShortcut& cut, QObject* parent, const char* name )
+AutoToolsAction::AutoToolsAction( const TQString& text, const TQIconSet& pix,
+ const KShortcut& cut, TQObject* parent, const char* name )
: KAction( text, pix, cut, parent, name )
{
}
-AutoToolsAction::AutoToolsAction( const QString& text, const QString& pix,
- const KShortcut& cut, QObject* parent, const char* name )
+AutoToolsAction::AutoToolsAction( const TQString& text, const TQString& pix,
+ const KShortcut& cut, TQObject* parent, const char* name )
: KAction( text, pix, cut, parent, name )
{
}
-AutoToolsAction::AutoToolsAction( const QString& text, const QIconSet& pix,
- const KShortcut& cut, const QObject* receiver,
- const char* slot, QObject* parent, const char * name )
+AutoToolsAction::AutoToolsAction( const TQString& text, const TQIconSet& pix,
+ const KShortcut& cut, const TQObject* receiver,
+ const char* slot, TQObject* parent, const char * name )
: KAction( text, pix, cut, receiver, slot, parent, name )
{
}
-AutoToolsAction::AutoToolsAction( const QString& text, const QString& pix,
- const KShortcut & cut, const QObject* receiver,
- const char* slot, QObject* parent, const char * name )
+AutoToolsAction::AutoToolsAction( const TQString& text, const TQString& pix,
+ const KShortcut & cut, const TQObject* receiver,
+ const char* slot, TQObject* parent, const char * name )
: KAction( text, pix, cut, receiver, slot, parent, name )
{
}
-AutoToolsAction::AutoToolsAction( QObject * parent, const char * name )
+AutoToolsAction::AutoToolsAction( TQObject * parent, const char * name )
: KAction( parent, name )
{
}
-int AutoToolsAction::plug( QWidget* w, int index )
+int AutoToolsAction::plug( TQWidget* w, int index )
{
if ( !w ) {
kdWarning(129) << "KAction::plug called with 0 argument\n";
@@ -107,10 +107,10 @@ int AutoToolsAction::plug( QWidget* w, int index )
if (kapp && !kapp->authorizeKAction(name()))
return -1;
- if ( ::qt_cast<QToolButton*>( w ) )
+ if ( ::qt_cast<TQToolButton*>( w ) )
{
- QToolButton* tb = static_cast<QToolButton*>( w );
- connect( tb, SIGNAL( clicked() ), this, SLOT( activate() ) );
+ TQToolButton* tb = static_cast<TQToolButton*>( w );
+ connect( tb, TQT_SIGNAL( clicked() ), this, TQT_SLOT( activate() ) );
int id = getToolButtonID();
if ( !icon().isEmpty() )
@@ -123,14 +123,14 @@ int AutoToolsAction::plug( QWidget* w, int index )
if ( !whatsThis().isEmpty() )
{
- QWhatsThis::remove( tb );
- QWhatsThis::add( tb, whatsThisWithIcon() );
+ TQWhatsThis::remove( tb );
+ TQWhatsThis::add( tb, whatsThisWithIcon() );
}
if ( !toolTip().isEmpty() )
{
- QToolTip::remove( tb );
- QToolTip::add( tb, toolTip() );
+ TQToolTip::remove( tb );
+ TQToolTip::add( tb, toolTip() );
}
addContainer( tb, id );
@@ -143,10 +143,10 @@ int AutoToolsAction::plug( QWidget* w, int index )
void AutoToolsAction::updateEnabled( int i )
{
- QWidget* w = container( i );
+ TQWidget* w = container( i );
- if ( ::qt_cast<QToolButton*>( w ) )
- static_cast<QToolButton*>( w )->setEnabled( isEnabled() );
+ if ( ::qt_cast<TQToolButton*>( w ) )
+ static_cast<TQToolButton*>( w )->setEnabled( isEnabled() );
else
KAction::updateEnabled( i ) ;
}