summaryrefslogtreecommitdiffstats
path: root/kommander/widgets/popupmenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/widgets/popupmenu.cpp')
-rw-r--r--kommander/widgets/popupmenu.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/kommander/widgets/popupmenu.cpp b/kommander/widgets/popupmenu.cpp
index 343526ae..b24e5956 100644
--- a/kommander/widgets/popupmenu.cpp
+++ b/kommander/widgets/popupmenu.cpp
@@ -9,6 +9,11 @@
// Copyright: See COPYING file that comes with this distribution
//
//
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "popupmenu.h"
#include "specials.h"
@@ -33,7 +38,7 @@
#define LAST_FUNCTION INSERTSUBMENU
PopupMenu::PopupMenu(TQWidget *parent, const char *name)
- : TQLabel(parent, name), KommanderWidget(TQT_TQOBJECT(this))
+ : TQLabel(parent, name), KommanderWidget(this)
{
TQStringList states;
states << "default";
@@ -50,7 +55,7 @@ PopupMenu::PopupMenu(TQWidget *parent, const char *name)
setHidden(true);
m_menu = new TDEPopupMenu(this);
- connect(m_menu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotMenuItemActivated(int)));
+ connect(m_menu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotMenuItemActivated(int)));
KommanderPlugin::setDefaultGroup(Group::DCOP);
KommanderPlugin::registerFunction(INSERTMENUITEM, "insertMenuItem(TQString widget, TQString text, TQString executeWidget, int index, TQString icon)", i18n("Insert an item into the popup menu. The executeWidget's execute method will be run when this item is selected. Returns the id of the inserted item. Use -1 for index to insert to the end. The icon is optional."), 4, 5);