diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-02-12 14:08:42 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-02-12 14:08:52 +0900 |
commit | 67bff2edcacb208dc44dcd521386bef686dc6dbf (patch) | |
tree | 538584042585402a59d4b1464b117033778ccc28 /src/kernel/qinternal.cpp | |
parent | fb401a891f1b426e9419c0cb16403df407138611 (diff) | |
download | tqt3-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/kernel/qinternal.cpp')
-rw-r--r-- | src/kernel/qinternal.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/kernel/qinternal.cpp b/src/kernel/qinternal.cpp index 8281e70b4..e99c95f79 100644 --- a/src/kernel/qinternal.cpp +++ b/src/kernel/qinternal.cpp @@ -55,7 +55,7 @@ static TQSharedDoubleBuffer* qdb_owner = 0; TQCleanupHandler<TQPixmap> qdb_pixmap_cleanup; -#ifdef Q_WS_MACX +#ifdef TQ_WS_MACX bool TQSharedDoubleBuffer::dblbufr = FALSE; #else bool TQSharedDoubleBuffer::dblbufr = TRUE; @@ -74,7 +74,7 @@ bool TQSharedDoubleBuffer::dblbufr = TRUE; */ static const int hardLimitWidth = -1; static const int hardLimitHeight = -1; -#if defined( Q_WS_QWS ) || defined( Q_WS_MAC9 ) +#if defined( TQ_WS_QWS ) || defined( TQ_WS_MAC9 ) // Small in TQt/Embedded / Mac9 - 5K on 32bpp static const int sharedLimitWidth = 64; static const int sharedLimitHeight = 20; @@ -354,11 +354,11 @@ bool TQSharedDoubleBuffer::begin( TQPainter* painter, int x, int y, int w, int h rh = h; if ( ( pix = getPixmap() ) ) { -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 if ( painter->device()->x11Screen() != pix->x11Screen() ) pix->x11SetScreen( painter->device()->x11Screen() ); TQPixmap::x11SetDefaultScreen( pix->x11Screen() ); -#endif // Q_WS_X11 +#endif // TQ_WS_X11 state |= BufferActive; p = new TQPainter( pix ); @@ -405,11 +405,11 @@ bool TQSharedDoubleBuffer::begin( TQWidget* widget, int x, int y, int w, int h ) rh = h <= 0 ? wid->height() : h; if ( ( pix = getPixmap() ) ) { -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 if ( wid->x11Screen() != pix->x11Screen() ) pix->x11SetScreen( wid->x11Screen() ); TQPixmap::x11SetDefaultScreen( pix->x11Screen() ); -#endif // Q_WS_X11 +#endif // TQ_WS_X11 state |= BufferActive; if ( flags & InitBG ) { |