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-14 21:06:27 +0900
commit473cd1e8a525d82f49e936d76daabe3d094a8807 (patch)
treedc0fe3faad1958b846eeebb02208728c0d278854 /src/widgets/qwhatsthis.cpp
parentecca365daf06c711cf30f93f4c773dabf5642790 (diff)
downloadtqt-473cd1e8a525d82f49e936d76daabe3d094a8807.tar.gz
tqt-473cd1e8a525d82f49e936d76daabe3d094a8807.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> (cherry picked from commit 67bff2edcacb208dc44dcd521386bef686dc6dbf)
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 );