From 030a2248f3630fd0404df98beffc78b5b5ca4c31 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 24 Aug 2023 21:28:39 +0900 Subject: Drop USE_QT4 code Signed-off-by: Michele Calgaro --- src/modules/my/idle_x11.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/modules/my') diff --git a/src/modules/my/idle_x11.cpp b/src/modules/my/idle_x11.cpp index 77caef53..a846a8c3 100644 --- a/src/modules/my/idle_x11.cpp +++ b/src/modules/my/idle_x11.cpp @@ -37,9 +37,6 @@ int IdlePlatform::secondsIdle() { return 0; } #include #include -#ifdef COMPILE_USE_QT4 - #include -#endif static XErrorHandler old_handler = 0; extern "C" int xerrhandler(Display* dpy, XErrorEvent* err) @@ -90,19 +87,12 @@ bool IdlePlatform::init() return false; } -#ifdef COMPILE_USE_QT4 - #include -#endif int IdlePlatform::secondsIdle() { if(!d->ss_info) return 0; -#ifdef COMPILE_USE_QT4 - if(!XScreenSaverQueryInfo(TQT_TQPAINTDEVICE(TQApplication::desktop()->screen())->x11Display(), QX11Info::appRootWindow(), d->ss_info)) -#else if(!XScreenSaverQueryInfo(TQT_TQPAINTDEVICE(TQApplication::desktop()->screen())->x11Display(), tqt_xrootwin(), d->ss_info)) -#endif return 0; return d->ss_info->idle / 1000; } -- cgit v1.2.1