summaryrefslogtreecommitdiffstats
path: root/lib/kofficeui/KoSelectAction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kofficeui/KoSelectAction.cpp')
-rw-r--r--lib/kofficeui/KoSelectAction.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/lib/kofficeui/KoSelectAction.cpp b/lib/kofficeui/KoSelectAction.cpp
index 68237b6a..9fd10314 100644
--- a/lib/kofficeui/KoSelectAction.cpp
+++ b/lib/kofficeui/KoSelectAction.cpp
@@ -19,10 +19,10 @@
#include "KoSelectAction.h"
-#include <qpixmap.h>
-#include <qbitmap.h>
-#include <qwhatsthis.h>
-#include <qmenubar.h>
+#include <tqpixmap.h>
+#include <tqbitmap.h>
+#include <tqwhatsthis.h>
+#include <tqmenubar.h>
#include <kpopupmenu.h>
#include <kapplication.h>
@@ -51,22 +51,22 @@ class KoSelectAction::KoSelectActionPrivate
int m_currentSelection;
};
-KoSelectAction::KoSelectAction(const QString &text, const QString& icon,
- QObject* parent, const char* name) : KAction(text, icon, 0, parent, name)
+KoSelectAction::KoSelectAction(const TQString &text, const TQString& icon,
+ TQObject* tqparent, const char* name) : KAction(text, icon, 0, tqparent, name)
{
d = new KoSelectActionPrivate;
setShowCurrentSelection(true);
- connect(popupMenu(), SIGNAL(activated(int)), this, SLOT(execute(int)));
+ connect(popupMenu(), TQT_SIGNAL(activated(int)), this, TQT_SLOT(execute(int)));
}
-KoSelectAction::KoSelectAction(const QString &text, const QString& icon, const QObject* receiver,
- const char* slot, QObject* parent, const char* name) : KAction(text, icon, 0, parent, name)
+KoSelectAction::KoSelectAction(const TQString &text, const TQString& icon, const TQObject* receiver,
+ const char* slot, TQObject* tqparent, const char* name) : KAction(text, icon, 0, tqparent, name)
{
d = new KoSelectActionPrivate;
- connect(this, SIGNAL(selectionChanged(int)), receiver, slot);
- connect(popupMenu(), SIGNAL(activated(int)), this, SLOT(execute(int)));
+ connect(this, TQT_SIGNAL(selectionChanged(int)), receiver, slot);
+ connect(popupMenu(), TQT_SIGNAL(activated(int)), this, TQT_SLOT(execute(int)));
}
KoSelectAction::~KoSelectAction()
@@ -79,20 +79,20 @@ KPopupMenu* KoSelectAction::popupMenu() const
return d->m_popup;
}
-void KoSelectAction::popup(const QPoint& global)
+void KoSelectAction::popup(const TQPoint& global)
{
popupMenu()->popup(global);
}
-int KoSelectAction::plug(QWidget* widget, int index)
+int KoSelectAction::plug(TQWidget* widget, int index)
{
// This function is copied from KActionMenu::plug
if (kapp && !kapp->authorizeKAction(name()))
return -1;
kdDebug(129) << "KAction::plug( " << widget << ", " << index << " )" << endl; // remove -- ellis
- if ( widget->inherits("QPopupMenu") )
+ if ( widget->inherits(TQPOPUPMENU_OBJECT_NAME_STRING) )
{
- QPopupMenu* menu = static_cast<QPopupMenu*>( widget );
+ TQPopupMenu* menu = static_cast<TQPopupMenu*>( widget );
int id;
if ( hasIconSet() )
@@ -105,7 +105,7 @@ int KoSelectAction::plug(QWidget* widget, int index)
menu->setItemEnabled( id, false );
addContainer( menu, id );
- connect( menu, SIGNAL( destroyed() ), this, SLOT( slotDestroyed() ) );
+ connect( menu, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( slotDestroyed() ) );
return containerCount() - 1;
}
@@ -116,8 +116,8 @@ int KoSelectAction::plug(QWidget* widget, int index)
int id_ = KAction::getToolButtonID();
if ( icon().isEmpty() && !iconSet().isNull() ) {
- bar->insertButton( iconSet().pixmap(), id_, SIGNAL( clicked() ), this,
- SLOT( slotActivated() ), isEnabled(), plainText(),
+ bar->insertButton( iconSet().pixmap(), id_, TQT_SIGNAL( clicked() ), this,
+ TQT_SLOT( slotActivated() ), isEnabled(), plainText(),
index );
} else {
KInstance *instance;
@@ -128,25 +128,25 @@ int KoSelectAction::plug(QWidget* widget, int index)
instance = KGlobal::instance();
}
- bar->insertButton( icon(), id_, SIGNAL( clicked() ), this,
- SLOT( slotActivated() ), isEnabled(), plainText(),
+ bar->insertButton( icon(), id_, TQT_SIGNAL( clicked() ), this,
+ TQT_SLOT( slotActivated() ), isEnabled(), plainText(),
index, instance );
}
addContainer( bar, id_ );
if (!whatsThis().isEmpty())
- QWhatsThis::add( bar->getButton(id_), whatsThis() );
+ TQWhatsThis::add( bar->getButton(id_), whatsThis() );
- connect( bar, SIGNAL( destroyed() ), this, SLOT( slotDestroyed() ) );
+ connect( bar, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( slotDestroyed() ) );
bar->getButton(id_)->setPopup(popupMenu(), true );
return containerCount() - 1;
}
- else if ( widget->inherits( "QMenuBar" ) )
+ else if ( widget->inherits( TQMENUBAR_OBJECT_NAME_STRING ) )
{
- QMenuBar *bar = static_cast<QMenuBar *>( widget );
+ TQMenuBar *bar = static_cast<TQMenuBar *>( widget );
int id;
@@ -156,7 +156,7 @@ int KoSelectAction::plug(QWidget* widget, int index)
bar->setItemEnabled( id, false );
addContainer( bar, id );
- connect( bar, SIGNAL( destroyed() ), this, SLOT( slotDestroyed() ) );
+ connect( bar, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( slotDestroyed() ) );
return containerCount() - 1;
}