summaryrefslogtreecommitdiffstats
path: root/kdeui/tests/kpopuptest.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeui/tests/kpopuptest.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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();
}