summaryrefslogtreecommitdiffstats
path: root/kdeui/tests/kpopuptest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdeui/tests/kpopuptest.cpp')
-rw-r--r--kdeui/tests/kpopuptest.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kdeui/tests/kpopuptest.cpp b/kdeui/tests/kpopuptest.cpp
index 43e3c0958..96f4b3d32 100644
--- a/kdeui/tests/kpopuptest.cpp
+++ b/kdeui/tests/kpopuptest.cpp
@@ -1,30 +1,30 @@
#include <kapplication.h>
-#include <qwidget.h>
-#include <qcursor.h>
+#include <tqwidget.h>
+#include <tqcursor.h>
#include "kpopupmenu.h"
-class DemoWidget : public QWidget {
+class DemoWidget : public TQWidget {
private:
KPopupMenu *menu;
-void mousePressEvent(QMouseEvent *)
+void mousePressEvent(TQMouseEvent *)
{
- menu->popup(QCursor::pos());
+ menu->popup(TQCursor::pos());
}
-void paintEvent(QPaintEvent *)
+void paintEvent(TQPaintEvent *)
{
drawText(32, 32, "Press a Mouse Button!");
}
public:
- DemoWidget() : QWidget()
+ DemoWidget() : TQWidget()
{
menu = new KPopupMenu("Popup Menu:");
menu->insertItem("Item1");
menu->insertItem("Item2");
menu->insertSeparator();
- menu->insertItem("Quit", qApp, SLOT(quit()));
+ menu->insertItem("Quit", qApp, TQT_SLOT(quit()));
}
};
@@ -33,7 +33,7 @@ int main(int argc, char **argv)
KApplication app(argc, argv, "kpopupmenutest");
DemoWidget w;
app.setMainWidget(&w);
- w.setFont(QFont("helvetica", 12, QFont::Bold), true);
+ w.setFont(TQFont("helvetica", 12, TQFont::Bold), true);
w.show();
return app.exec();
}