summaryrefslogtreecommitdiffstats
path: root/libtdescreensaver
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-02-13 11:10:37 +0900
committerMichele Calgaro <[email protected]>2024-02-15 10:21:34 +0900
commit03aa7238b34bb438632b6d572b008e32960f0895 (patch)
tree11395aba8fd4cb1f52f0a831c61febf61337dab7 /libtdescreensaver
parent15d75fb42da10a93a9c371fea8eb0baf281e0d44 (diff)
downloadtdelibs-03aa7238b34bb438632b6d572b008e32960f0895.tar.gz
tdelibs-03aa7238b34bb438632b6d572b008e32960f0895.zip
Replace Q_WS_* defines with TQ_WS_* equivalents
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'libtdescreensaver')
-rw-r--r--libtdescreensaver/main.cpp4
-rw-r--r--libtdescreensaver/tdescreensaver.cpp6
-rw-r--r--libtdescreensaver/tdescreensaver_vroot.h2
3 files changed, 6 insertions, 6 deletions
diff --git a/libtdescreensaver/main.cpp b/libtdescreensaver/main.cpp
index 2260f25fd..a82c0b658 100644
--- a/libtdescreensaver/main.cpp
+++ b/libtdescreensaver/main.cpp
@@ -89,7 +89,7 @@ protected:
//----------------------------------------------------------------------------
-#if defined(Q_WS_QWS) || defined(Q_WS_MACX)
+#if defined(TQ_WS_QWS) || defined(TQ_WS_MACX)
typedef WId Window;
#endif
@@ -131,7 +131,7 @@ KDE_EXPORT int main(int argc, char *argv[])
saveWin = atol(args->getOption("window-id"));
}
-#ifdef Q_WS_X11 //FIXME
+#ifdef TQ_WS_X11 //FIXME
if (args->isSet("root"))
{
saveWin = RootWindow(tqt_xdisplay(), tqt_xscreen());
diff --git a/libtdescreensaver/tdescreensaver.cpp b/libtdescreensaver/tdescreensaver.cpp
index 7441a5fcb..92c106bae 100644
--- a/libtdescreensaver/tdescreensaver.cpp
+++ b/libtdescreensaver/tdescreensaver.cpp
@@ -22,7 +22,7 @@
#include <tqtimer.h>
#include <tdeapplication.h>
#include "tdescreensaver.h"
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
#include <X11/Xlib.h>
#else
typedef WId Window;
@@ -56,7 +56,7 @@ KScreenSaver::KScreenSaver( WId id ) : TQWidget()
if ( id )
{
-#ifdef Q_WS_X11 //FIXME
+#ifdef TQ_WS_X11 //FIXME
XGetGeometry(tqt_xdisplay(), (Drawable)id, &root, &ai, &ai,
&w, &h, &au, &au);
#endif
@@ -80,7 +80,7 @@ KScreenSaver::~KScreenSaver()
void KScreenSaver::embed( TQWidget *w )
{
TDEApplication::sendPostedEvents();
-#ifdef Q_WS_X11 //FIXME
+#ifdef TQ_WS_X11 //FIXME
XReparentWindow(tqt_xdisplay(), w->winId(), winId(), 0, 0);
#endif
w->setGeometry( 0, 0, width(), height() );
diff --git a/libtdescreensaver/tdescreensaver_vroot.h b/libtdescreensaver/tdescreensaver_vroot.h
index aae76f9d9..adb98c964 100644
--- a/libtdescreensaver/tdescreensaver_vroot.h
+++ b/libtdescreensaver/tdescreensaver_vroot.h
@@ -62,7 +62,7 @@ static const char vroot_rcsid[] = "#Id: vroot.h,v 1.4 1991/09/30 19:23:16 stolck
#endif
#include <tqwidget.h>
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
#include <X11/X.h>
#include <X11/Xatom.h>
#include <X11/Xlib.h>