summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 20:48:12 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 20:48:12 +0000
commite0e4bf64073ac54a136c2b42b5530687b246f24a (patch)
tree2f68d9a750bb8349928a2020d9640d63040e4af4 /src/main.cpp
parentf2c25668ebf4de0e17c6558c1d8e3051057b55fd (diff)
downloadkvkbd-e0e4bf64073ac54a136c2b42b5530687b246f24a.tar.gz
kvkbd-e0e4bf64073ac54a136c2b42b5530687b246f24a.zip
TQt4 port kvkbd
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvkbd@1239029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 01c5148..8cf881c 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -66,7 +66,7 @@ void findAloneWindow()
for (i = 0; i < numkids; ++i)
{
XFetchName(dipsy, kids[i], &win_name);
- QString c(win_name);
+ TQString c(win_name);
if (c=="kvkbdalone")
{
@@ -109,12 +109,12 @@ public:
c << "state()";
return c;
}
- bool process(const QCString &fun, const QByteArray &data,
- QCString &replyType, QByteArray &replyData) {
+ bool process(const TQCString &fun, const TQByteArray &data,
+ TQCString &replyType, TQByteArray &replyData) {
- QDataStream io(replyData,IO_WriteOnly);
- replyType="QCString";
+ TQDataStream io(replyData,IO_WriteOnly);
+ replyType="TQCString";
MainWidget *main = (MainWidget *)mainWidget();
if (main) {
if (fun == "show()") {
@@ -154,16 +154,16 @@ public:
};
-class KvkbdApp : public QApplication
+class KvkbdApp : public TQApplication
{
public:
- KvkbdApp(int argc, char** argv, bool gui):QApplication(argc,argv,gui){
+ KvkbdApp(int argc, char** argv, bool gui):TQApplication(argc,argv,gui){
};
bool x11EventFilter ( XEvent *event ) {
if (event->type == DestroyNotify) {
- QApplication::exit();
+ TQApplication::exit();
}
else if (event->type == MappingNotify) {