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/qfontdata_p.h | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'src/kernel/qfontdata_p.h') diff --git a/src/kernel/qfontdata_p.h b/src/kernel/qfontdata_p.h index fc0734489..9c21dfe60 100644 --- a/src/kernel/qfontdata_p.h +++ b/src/kernel/qfontdata_p.h @@ -69,7 +69,7 @@ struct TQFontDef styleHint( TQFont::AnyStyle ), styleStrategy( TQFont::PreferDefault ), weight( 50 ), italic( FALSE ), fixedPitch( FALSE ), stretch( 100 ), ignorePitch(TRUE) -#ifdef Q_WS_MAC +#ifdef TQ_WS_MAC ,fixedPitchComputed(FALSE) #endif { @@ -77,9 +77,9 @@ struct TQFontDef TQString family; -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 TQString addStyle; -#endif // Q_WS_X11 +#endif // TQ_WS_X11 int pointSize; int pixelSize; @@ -107,9 +107,9 @@ struct TQFontDef if ( styleStrategy != other.styleStrategy ) return styleStrategy < other.styleStrategy; if ( family != other.family ) return family < other.family; -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 if ( addStyle != other.addStyle ) return addStyle < other.addStyle; -#endif // Q_WS_X11 +#endif // TQ_WS_X11 return FALSE; } @@ -123,12 +123,12 @@ public: uint lineWidth; -#if defined(Q_WS_X11) || defined(Q_WS_WIN) +#if defined(TQ_WS_X11) || defined(TQ_WS_WIN) TQFontEngine *engines[TQFont::LastPrivateScript]; #else TQFontEngine *engine; -#endif // Q_WS_X11 || Q_WS_WIN -#ifndef Q_WS_MAC +#endif // TQ_WS_X11 || TQ_WS_WIN +#ifndef TQ_WS_MAC enum { widthCacheSize = 0x500 }; uchar widthCache[widthCacheSize]; #endif @@ -139,9 +139,9 @@ class TQFontPrivate : public TQShared { public: static TQFont::Script defaultScript; -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 static int defaultEncodingID; -#endif // Q_WS_X11 +#endif // TQ_WS_X11 TQFontPrivate(); TQFontPrivate( const TQFontPrivate &other ); @@ -151,7 +151,7 @@ public: TQFontEngine *engineForScript( TQFont::Script script ) const { if ( script == TQFont::NoScript ) script = TQFontPrivate::defaultScript; -#if defined(Q_WS_X11) || defined(Q_WS_WIN) +#if defined(TQ_WS_X11) || defined(TQ_WS_WIN) if ( ! engineData || ! engineData->engines[script] ) ((TQFontPrivate *) this)->load( script ); return engineData->engines[script]; @@ -159,7 +159,7 @@ public: if ( ! engineData || ! engineData->engine ) ((TQFontPrivate *) this)->load( script ); return engineData->engine; -#endif // Q_WS_X11 || Q_WS_WIN +#endif // TQ_WS_X11 || TQ_WS_WIN } TQFontDef request; @@ -201,7 +201,7 @@ public: TQFontCache(); ~TQFontCache(); -#ifdef Q_WS_QWS +#ifdef TQ_WS_QWS void clear(); #endif // universal key structure. TQFontEngineDatas and TQFontEngines are cached using @@ -211,7 +211,7 @@ public: Key( const TQFontDef &d, TQFont::Script c, int s, TQPaintDevice *pdev ) : script(c), screen(s) { def = d; -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 dpi = pdev ? TQPaintDeviceMetrics(pdev).logicalDpiY() : 0; #else Q_UNUSED(pdev); @@ -259,7 +259,7 @@ public: TQFontEngine *findEngine( const Key &key ); void insertEngine( const Key &key, TQFontEngine *engine ); -#if defined(Q_WS_WIN) || defined(Q_WS_QWS) +#if defined(TQ_WS_WIN) || defined(TQ_WS_QWS) void cleanupPrinterFonts(); #endif -- cgit v1.2.1