diff options
author | Michele Calgaro <[email protected]> | 2024-02-13 11:10:37 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-02-15 10:29:09 +0900 |
commit | 5e51787f9af4fd86450fab9e787b4037a772bca3 (patch) | |
tree | a792ad1d832ef77fd48f6c545d5bf35f8490d6eb /tdeui/kpassivepopup.cpp | |
parent | 3b1a091b3f8c0e88904ed2395e9d7efe590c9495 (diff) | |
download | tdelibs-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/kpassivepopup.cpp')
-rw-r--r-- | tdeui/kpassivepopup.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tdeui/kpassivepopup.cpp b/tdeui/kpassivepopup.cpp index 9da2a67ab..eb626a767 100644 --- a/tdeui/kpassivepopup.cpp +++ b/tdeui/kpassivepopup.cpp @@ -25,7 +25,7 @@ #include <tdeglobalsettings.h> #include "config.h" -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 #include <netwm.h> #endif @@ -143,7 +143,7 @@ TQVBox * KPassivePopup::standardView(const TQString& caption, TQString sizedCaption = caption; TQString sizedText = text; -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 int max_width; NETRootInfo info( tqt_xdisplay(), @@ -172,7 +172,7 @@ TQVBox * KPassivePopup::standardView(const TQString& caption, if ( !sizedCaption.isEmpty() ) { ttl = new TQLabel( sizedCaption, hb ? hb : vb, "title_label" ); TQFont fnt = ttl->font(); -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 truncateStringToFit(sizedCaption, fnt, max_width); ttl->setText(sizedCaption); #endif @@ -186,7 +186,7 @@ TQVBox * KPassivePopup::standardView(const TQString& caption, if ( !sizedText.isEmpty() ) { msg = new TQLabel( sizedText, vb, "msg_label" ); -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 TQStringList textLines = TQStringList::split("\n", sizedText, true); for (TQStringList::Iterator it = textLines.begin(); it != textLines.end(); ++it) { truncateStringToFit(*it, msg->font(), max_width); @@ -295,7 +295,7 @@ void KPassivePopup::hideEvent( TQHideEvent * ) TQRect KPassivePopup::defaultArea() const { -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 NETRootInfo info( tqt_xdisplay(), NET::NumberOfDesktops | NET::CurrentDesktop | @@ -317,7 +317,7 @@ void KPassivePopup::positionSelf() { TQRect target; -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 if ( !window ) { target = defaultArea(); } |