diff options
author | Michele Calgaro <[email protected]> | 2024-02-13 11:09:49 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-02-14 23:27:49 +0900 |
commit | b2fcd6f20191c7fc8557d99e9bbe26d2166a516a (patch) | |
tree | 883186f4c1c2f818a52e91594a6551c75742c6f7 /krootbacking/krootbacking.cpp | |
parent | 2878e483494b14524394ae1680c8eb4bcae66d66 (diff) | |
download | tdebase-b2fcd6f20191c7fc8557d99e9bbe26d2166a516a.tar.gz tdebase-b2fcd6f20191c7fc8557d99e9bbe26d2166a516a.zip |
Replace Q_WS_* defines with TQ_WS_* equivalents
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 2d7d2122cf33aa713cebef95981305039c798003)
Diffstat (limited to 'krootbacking/krootbacking.cpp')
-rw-r--r-- | krootbacking/krootbacking.cpp | 14 |
1 files changed, 7 insertions, 7 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()) |