From 67bff2edcacb208dc44dcd521386bef686dc6dbf Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 12 Feb 2024 14:08:42 +0900 Subject: 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 --- src/kernel/qscriptengine.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/kernel/qscriptengine.cpp') diff --git a/src/kernel/qscriptengine.cpp b/src/kernel/qscriptengine.cpp index 7cb8848f9..19ca36e97 100644 --- a/src/kernel/qscriptengine.cpp +++ b/src/kernel/qscriptengine.cpp @@ -404,7 +404,7 @@ static bool basic_shape(TQShaperItem *item) enum { CcmpProperty = 0x1 }; -#if defined(Q_WS_X11) && !defined(TQT_NO_XFTFREETYPE) +#if defined(TQ_WS_X11) && !defined(TQT_NO_XFTFREETYPE) static const TQOpenType::Features hebrew_features[] = { { FT_MAKE_TAG('c', 'c', 'm', 'p'), CcmpProperty }, {0, 0} @@ -419,7 +419,7 @@ static bool hebrew_shape(TQShaperItem *item) { Q_ASSERT(item->script == TQFont::Hebrew); -#if defined(Q_WS_X11) && !defined(TQT_NO_XFTFREETYPE) +#if defined(TQ_WS_X11) && !defined(TQT_NO_XFTFREETYPE) TQOpenType *openType = item->font->openType(); if (openType && openType->supportsScript(item->script)) { @@ -1460,7 +1460,7 @@ static void shapedString(const TQString *uc, int from, int len, TQChar *shapeBuf *shapedLength = data - shapeBuffer; } -#if defined(Q_WS_X11) && !defined(TQT_NO_XFTFREETYPE) +#if defined(TQ_WS_X11) && !defined(TQT_NO_XFTFREETYPE) enum { InitProperty = 0x2, @@ -1582,7 +1582,7 @@ static bool arabic_shape(TQShaperItem *item) { Q_ASSERT(item->script == TQFont::Arabic); -#if defined(Q_WS_X11) && !defined(TQT_NO_XFTFREETYPE) +#if defined(TQ_WS_X11) && !defined(TQT_NO_XFTFREETYPE) TQOpenType *openType = item->font->openType(); if (openType && openType->supportsScript(TQFont::Arabic)) { @@ -1613,12 +1613,12 @@ static bool arabic_shape(TQShaperItem *item) return TRUE; } -#if defined(Q_WS_X11) +#if defined(TQ_WS_X11) # include "qscriptengine_x11.cpp" -#elif defined(Q_WS_WIN) +#elif defined(TQ_WS_WIN) # include "qscriptengine_win.cpp" -#elif defined(Q_WS_MAC) +#elif defined(TQ_WS_MAC) # include "qscriptengine_mac.cpp" -#elif defined(Q_WS_QWS) +#elif defined(TQ_WS_QWS) # include "qscriptengine_qws.cpp" #endif -- cgit v1.2.1