summaryrefslogtreecommitdiffstats
path: root/src/kvilib/tal/kvi_tal_popupmenu_qt4.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvilib/tal/kvi_tal_popupmenu_qt4.h')
-rw-r--r--src/kvilib/tal/kvi_tal_popupmenu_qt4.h37
1 files changed, 19 insertions, 18 deletions
diff --git a/src/kvilib/tal/kvi_tal_popupmenu_qt4.h b/src/kvilib/tal/kvi_tal_popupmenu_qt4.h
index 58da15ef..79e5e5f3 100644
--- a/src/kvilib/tal/kvi_tal_popupmenu_qt4.h
+++ b/src/kvilib/tal/kvi_tal_popupmenu_qt4.h
@@ -28,56 +28,57 @@
#include "kvi_settings.h"
#include "kvi_qstring.h"
-#include <q3popupmenu.h>
-#include <qwidgetaction.h>
+#include <tq3popupmenu.h>
+#include <tqwidgetaction.h>
class KVILIB_API KviTalPopupMenu : public Q3PopupMenu
{
Q_OBJECT
+ TQ_OBJECT
public:
- KviTalPopupMenu(QWidget * pParent=0,const QString &szName = KviQString::empty)
+ KviTalPopupMenu(TQWidget * pParent=0,const TQString &szName = KviTQString::empty)
: Q3PopupMenu(pParent)
{
setName(szName);
};
virtual ~KviTalPopupMenu() {};
- int insertItem(const QString &szText)
+ int insertItem(const TQString &szText)
{
return Q3PopupMenu::insertItem(szText);
}
- int insertItem(const QPixmap &pix,const QString &szText)
+ int insertItem(const TQPixmap &pix,const TQString &szText)
{
- return Q3PopupMenu::insertItem(QIcon(pix),szText,-1,-1);
+ return Q3PopupMenu::insertItem(TQIcon(pix),szText,-1,-1);
}
- int insertItem(const QString &szText,int id)
+ int insertItem(const TQString &szText,int id)
{
return Q3PopupMenu::insertItem(szText,id);
}
- int insertItem(const QPixmap &pix,const QString &szText,int id)
+ int insertItem(const TQPixmap &pix,const TQString &szText,int id)
{
- return Q3PopupMenu::insertItem(QIcon(pix),szText,id,-1);
+ return Q3PopupMenu::insertItem(TQIcon(pix),szText,id,-1);
}
- int insertItem(const QString &szText,const QObject * pReceiver,const char * szSlot)
+ int insertItem(const TQString &szText,const TQObject * pReceiver,const char * szSlot)
{
return Q3PopupMenu::insertItem(szText,pReceiver,szSlot);
}
- int insertItem(const QPixmap &pix,const QString &szText,const QObject * pReceiver,const char * szSlot)
+ int insertItem(const TQPixmap &pix,const TQString &szText,const TQObject * pReceiver,const char * szSlot)
{
- return Q3PopupMenu::insertItem(QIcon(pix),szText,pReceiver,szSlot);
+ return Q3PopupMenu::insertItem(TQIcon(pix),szText,pReceiver,szSlot);
}
- int insertItem(const QPixmap &pix,const QString &szText,QMenu *pMenu)
+ int insertItem(const TQPixmap &pix,const TQString &szText,TQMenu *pMenu)
{
- return Q3PopupMenu::insertItem(QIcon(pix),szText,pMenu,-1,-1);
+ return Q3PopupMenu::insertItem(TQIcon(pix),szText,pMenu,-1,-1);
}
- int insertItem(const QString &szText,QMenu *pMenu)
+ int insertItem(const TQString &szText,TQMenu *pMenu)
{
return Q3PopupMenu::insertItem(szText,pMenu,-1,-1);
}
- int insertItem(QWidget * pWidget)
+ int insertItem(TQWidget * pWidget)
{
- // needs Qt 4.2
- QWidgetAction * pAct = new QWidgetAction(this);
+ // needs TQt 4.2
+ TQWidgetAction * pAct = new TQWidgetAction(this);
pAct->setDefaultWidget(pWidget);
addAction(pAct);
return 0;