summaryrefslogtreecommitdiffstats
path: root/src/kernel/qinternal.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/kernel/qinternal.cpp
parentecca365daf06c711cf30f93f4c773dabf5642790 (diff)
downloadtqt3-473cd1e8a525d82f49e936d76daabe3d094a8807.tar.gz
tqt3-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/kernel/qinternal.cpp')
-rw-r--r--src/kernel/qinternal.cpp12
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 ) {