diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-02-13 11:09:49 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-02-14 23:27:49 +0900 |
commit | b2fcd6f20191c7fc8557d99e9bbe26d2166a516a (patch) | |
tree | 883186f4c1c2f818a52e91594a6551c75742c6f7 /krootbacking | |
parent | 2878e483494b14524394ae1680c8eb4bcae66d66 (diff) | |
download | tdebase-b2fcd6f20191c7fc8557d99e9bbe26d2166a516a.tar.gz tdebase-b2fcd6f20191c7fc8557d99e9bbe26d2166a516a.zip |
Replace Q_WS_* defines with TQ_WS_* equivalents
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 2d7d2122cf33aa713cebef95981305039c798003)
Diffstat (limited to 'krootbacking')
-rw-r--r-- | krootbacking/krootbacking.cpp | 14 | ||||
-rw-r--r-- | krootbacking/krootbacking.h | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/krootbacking/krootbacking.cpp b/krootbacking/krootbacking.cpp index 73efa6abb..71c6588d9 100644 --- a/krootbacking/krootbacking.cpp +++ b/krootbacking/krootbacking.cpp @@ -45,7 +45,7 @@ class KRootBackingData { public: TQWidget *toplevel; -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 KWinModule *twin; #endif }; @@ -70,7 +70,7 @@ void KRootBacking::init() connect(kapp, TQ_SIGNAL(backgroundChanged(int)), TQ_SLOT(slotBackgroundChanged(int))); connect(m_pTimer, TQ_SIGNAL(timeout()), TQ_SLOT(repaint())); -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 connect(m_pPixmap, TQ_SIGNAL(done(bool)), TQ_SLOT(slotDone(bool))); d->twin = new KWinModule( this ); @@ -88,7 +88,7 @@ KRootBacking::~KRootBacking() int KRootBacking::currentDesktop() const { -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 NETRootInfo rinfo( tqt_xdisplay(), NET::CurrentDesktop ); rinfo.activate(); return rinfo.currentDesktop(); @@ -153,7 +153,7 @@ void KRootBacking::repaint(bool force) return; m_Rect = TQRect(p1, p2); -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 m_Desk = currentDesktop(); // TDESharedPixmap will correctly generate a tile for us. @@ -172,7 +172,7 @@ void KRootBacking::repaint(bool force) bool KRootBacking::isAvailable() const { -// #ifdef Q_WS_X11 +// #ifdef TQ_WS_X11 // return m_pPixmap->isAvailable(pixmapName(m_Desk)); // #else return m_pPixmap->isNull(); @@ -181,7 +181,7 @@ bool KRootBacking::isAvailable() const TQString KRootBacking::pixmapName(int desk) { TQString pattern = TQString("DESKTOP%1"); -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 int screen_number = DefaultScreen(tqt_xdisplay()); if (screen_number) { pattern = TQString("SCREEN%1-DESKTOP").arg(screen_number) + "%1"; @@ -193,7 +193,7 @@ TQString KRootBacking::pixmapName(int desk) { void KRootBacking::enableExports() { -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 kdDebug(270) << k_lineinfo << "activating background exports.\n"; DCOPClient *client = kapp->dcopClient(); if (!client->isAttached()) diff --git a/krootbacking/krootbacking.h b/krootbacking/krootbacking.h index 860fe7e85..a430d3c45 100644 --- a/krootbacking/krootbacking.h +++ b/krootbacking/krootbacking.h @@ -27,7 +27,7 @@ #include <tqcolor.h> #include <tdelibs_export.h> -#ifndef Q_WS_QWS //FIXME +#ifndef TQ_WS_QWS //FIXME class TQRect; class TQWidget; @@ -174,6 +174,6 @@ private: void init(); }; -#endif // ! Q_WS_QWS +#endif // ! TQ_WS_QWS #endif // KROOTBACKING_H |