summaryrefslogtreecommitdiffstats
path: root/tdeui/krootpixmap.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-02-13 11:10:37 +0900
committerMichele Calgaro <[email protected]>2024-02-15 10:29:09 +0900
commit5e51787f9af4fd86450fab9e787b4037a772bca3 (patch)
treea792ad1d832ef77fd48f6c545d5bf35f8490d6eb /tdeui/krootpixmap.cpp
parent3b1a091b3f8c0e88904ed2395e9d7efe590c9495 (diff)
downloadtdelibs-5e51787f9af4fd86450fab9e787b4037a772bca3.tar.gz
tdelibs-5e51787f9af4fd86450fab9e787b4037a772bca3.zip
Replace Q_WS_* defines with TQ_WS_* equivalents
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 03aa7238b34bb438632b6d572b008e32960f0895)
Diffstat (limited to 'tdeui/krootpixmap.cpp')
-rw-r--r--tdeui/krootpixmap.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/tdeui/krootpixmap.cpp b/tdeui/krootpixmap.cpp
index 93cb1f456..5a0923566 100644
--- a/tdeui/krootpixmap.cpp
+++ b/tdeui/krootpixmap.cpp
@@ -37,7 +37,7 @@ class KRootPixmapData
{
public:
TQWidget *toplevel;
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
KWinModule *twin;
#endif
};
@@ -69,7 +69,7 @@ void KRootPixmap::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 );
@@ -91,7 +91,7 @@ KRootPixmap::~KRootPixmap()
int KRootPixmap::currentDesktop() const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
NETRootInfo rinfo( tqt_xdisplay(), NET::CurrentDesktop );
rinfo.activate();
return rinfo.currentDesktop();
@@ -187,7 +187,7 @@ void KRootPixmap::desktopChanged(int desktop)
!wallpaperForDesktop(m_Desk).isNull())
return;
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
if (KWin::windowInfo(m_pWidget->topLevelWidget()->winId()).desktop() == NET::OnAllDesktops &&
pixmapName(m_Desk) != pixmapName(desktop))
#endif
@@ -196,7 +196,7 @@ void KRootPixmap::desktopChanged(int desktop)
void KRootPixmap::desktopChanged( WId window, unsigned int properties )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
if( !(properties & NET::WMDesktop) ||
(window != m_pWidget->topLevelWidget()->winId()))
return;
@@ -232,7 +232,7 @@ void KRootPixmap::repaint(bool force)
return;
}
m_Rect = TQRect(p1, p2);
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
m_Desk = KWin::windowInfo(m_pWidget->topLevelWidget()->winId()).desktop();
if ((m_Desk == NET::OnAllDesktops) || (m_Desk == 0)) {
m_Desk = currentDesktop();
@@ -254,7 +254,7 @@ void KRootPixmap::repaint(bool force)
bool KRootPixmap::isAvailable() const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
return m_pPixmap->isAvailable(pixmapName(m_Desk));
#else
return m_pPixmap->isNull();
@@ -263,7 +263,7 @@ bool KRootPixmap::isAvailable() const
TQString KRootPixmap::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";
@@ -275,7 +275,7 @@ TQString KRootPixmap::pixmapName(int desk) {
void KRootPixmap::enableExports()
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
kdDebug(270) << k_lineinfo << "activating background exports.\n";
DCOPClient *client = kapp->dcopClient();
if (!client->isAttached())