summaryrefslogtreecommitdiffstats
path: root/tdeui/kpassivepopup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdeui/kpassivepopup.cpp')
-rw-r--r--tdeui/kpassivepopup.cpp12
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();
}