summaryrefslogtreecommitdiffstats
path: root/src/widgets/qwhatsthis.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-02-12 14:08:42 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-02-12 14:08:52 +0900
commit67bff2edcacb208dc44dcd521386bef686dc6dbf (patch)
tree538584042585402a59d4b1464b117033778ccc28 /src/widgets/qwhatsthis.cpp
parentfb401a891f1b426e9419c0cb16403df407138611 (diff)
downloadtqt3-67bff2edcacb208dc44dcd521386bef686dc6dbf.tar.gz
tqt3-67bff2edcacb208dc44dcd521386bef686dc6dbf.zip
Replace Q_WS_* defines with TQ_WS_* equivalents
This is the first part of the replacement process. Usage of Q_WS_* has been replaced with the equivalent TQ_WS_*. Definition of Q_WS_* has been mirrored into TQ_WS_* defines, to allow TDE code to continue building till replacement is carried over to all other modules. Once that is completed, the original Q_WS_* defines will be removed. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/widgets/qwhatsthis.cpp')
-rw-r--r--src/widgets/qwhatsthis.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/widgets/qwhatsthis.cpp b/src/widgets/qwhatsthis.cpp
index de2b19c17..086c3f0cc 100644
--- a/src/widgets/qwhatsthis.cpp
+++ b/src/widgets/qwhatsthis.cpp
@@ -54,7 +54,7 @@
#if defined(QT_ACCESSIBILITY_SUPPORT)
#include "ntqaccessible.h"
#endif
-#if defined(Q_WS_WIN)
+#if defined(TQ_WS_WIN)
#include "qt_windows.h"
#ifndef SPI_GETDROPSHADOW
#define SPI_GETDROPSHADOW 0x1024
@@ -277,7 +277,7 @@ TQWhatsThat::TQWhatsThat( TQWidget* w, const TQString& txt, TQWidget* parent, co
AlignAuto + AlignTop + WordBreak + ExpandTabs,
text );
}
-#if defined(Q_WS_WIN)
+#if defined(TQ_WS_WIN)
if ( (qWinVersion()&WV_NT_based) > WV_2000 ) {
BOOL shadow;
SystemParametersInfo( SPI_GETDROPSHADOW, 0, &shadow, 0 );
@@ -365,13 +365,13 @@ void TQWhatsThat::keyPressEvent( TQKeyEvent* )
void TQWhatsThat::paintEvent( TQPaintEvent* )
{
bool drawShadow = TRUE;
-#if defined(Q_WS_WIN)
+#if defined(TQ_WS_WIN)
if ( (qWinVersion()&WV_NT_based) > WV_2000 ) {
BOOL shadow;
SystemParametersInfo( SPI_GETDROPSHADOW, 0, &shadow, 0 );
drawShadow = !shadow;
}
-#elif defined(Q_WS_MACX)
+#elif defined(TQ_WS_MACX)
drawShadow = FALSE; //never draw it on OS X we get it for free
#endif
@@ -657,7 +657,7 @@ void TQWhatsThisPrivate::say( TQWidget * widget, const TQString &text, const TQP
delete whatsThat;
whatsThat = new TQWhatsThat(
widget, text,
-#if defined(Q_WS_X11)
+#if defined(TQ_WS_X11)
TQApplication::desktop()->screen( widget ?
widget->x11Screen() :
TQCursor::x11Screen() ),
@@ -671,11 +671,11 @@ void TQWhatsThisPrivate::say( TQWidget * widget, const TQString &text, const TQP
int scr = ( widget ?
TQApplication::desktop()->screenNumber( widget ) :
-#if defined(Q_WS_X11)
+#if defined(TQ_WS_X11)
TQCursor::x11Screen()
#else
TQApplication::desktop()->screenNumber( ppos )
-#endif // Q_WS_X11
+#endif // TQ_WS_X11
);
TQRect screen = TQApplication::desktop()->screenGeometry( scr );