summaryrefslogtreecommitdiffstats
path: root/src/modules/my/idle_x11.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/my/idle_x11.cpp')
-rw-r--r--src/modules/my/idle_x11.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/my/idle_x11.cpp b/src/modules/my/idle_x11.cpp
index fa2f1f15..af29801e 100644
--- a/src/modules/my/idle_x11.cpp
+++ b/src/modules/my/idle_x11.cpp
@@ -31,14 +31,14 @@ int IdlePlatform::secondsIdle() { return 0; }
#else
-#include<qapplication.h>
+#include<tqapplication.h>
#include<X11/Xlib.h>
#include<X11/Xutil.h>
#include<X11/extensions/scrnsaver.h>
#ifdef COMPILE_USE_QT4
- #include <qdesktopwidget.h>
+ #include <tqdesktopwidget.h>
#endif
static XErrorHandler old_handler = 0;
@@ -83,7 +83,7 @@ bool IdlePlatform::init()
old_handler = XSetErrorHandler(xerrhandler);
int event_base, error_base;
- if(XScreenSaverQueryExtension(QApplication::desktop()->screen()->x11Display(), &event_base, &error_base)) {
+ if(XScreenSaverQueryExtension(TQT_TQPAINTDEVICE(TQApplication::desktop()->screen())->x11Display(), &event_base, &error_base)) {
d->ss_info = XScreenSaverAllocInfo();
return true;
}
@@ -91,7 +91,7 @@ bool IdlePlatform::init()
}
#ifdef COMPILE_USE_QT4
- #include <qx11info_x11.h>
+ #include <tqx11info_x11.h>
#endif
int IdlePlatform::secondsIdle()
@@ -99,9 +99,9 @@ int IdlePlatform::secondsIdle()
if(!d->ss_info)
return 0;
#ifdef COMPILE_USE_QT4
- if(!XScreenSaverQueryInfo(QApplication::desktop()->screen()->x11Display(), QX11Info::appRootWindow(), d->ss_info))
+ if(!XScreenSaverQueryInfo(TQT_TQPAINTDEVICE(TQApplication::desktop()->screen())->x11Display(), QX11Info::appRootWindow(), d->ss_info))
#else
- if(!XScreenSaverQueryInfo(QApplication::desktop()->screen()->x11Display(), qt_xrootwin(), d->ss_info))
+ if(!XScreenSaverQueryInfo(TQT_TQPAINTDEVICE(TQApplication::desktop()->screen())->x11Display(), qt_xrootwin(), d->ss_info))
#endif
return 0;
return d->ss_info->idle / 1000;