summaryrefslogtreecommitdiffstats
path: root/krootbacking
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-02-13 11:09:49 +0900
committerMichele Calgaro <[email protected]>2024-02-14 23:27:16 +0900
commit2d7d2122cf33aa713cebef95981305039c798003 (patch)
tree5475258078fa4044901c26c26ac4d04500fa2233 /krootbacking
parent55dd5ae8226b7d73b0883f827472e420977160e5 (diff)
downloadtdebase-2d7d2122cf33aa713cebef95981305039c798003.tar.gz
tdebase-2d7d2122cf33aa713cebef95981305039c798003.zip
Replace Q_WS_* defines with TQ_WS_* equivalents
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'krootbacking')
-rw-r--r--krootbacking/krootbacking.cpp14
-rw-r--r--krootbacking/krootbacking.h4
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