summaryrefslogtreecommitdiffstats
path: root/src/kernel/qfontengine_p.h
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-12 14:08:52 +0900
commit67bff2edcacb208dc44dcd521386bef686dc6dbf (patch)
tree538584042585402a59d4b1464b117033778ccc28 /src/kernel/qfontengine_p.h
parentfb401a891f1b426e9419c0cb16403df407138611 (diff)
downloadtqt3-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/qfontengine_p.h')
-rw-r--r--src/kernel/qfontengine_p.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/kernel/qfontengine_p.h b/src/kernel/qfontengine_p.h
index 499a5598b..e1fc58545 100644
--- a/src/kernel/qfontengine_p.h
+++ b/src/kernel/qfontengine_p.h
@@ -41,7 +41,7 @@
#include "ntqglobal.h"
#endif // QT_H
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
#include "qt_windows.h"
#include "ntqptrdict.h"
#endif
@@ -58,7 +58,7 @@ typedef int advance_t;
class TQOpenType;
struct TransformedFont;
-#if defined( Q_WS_X11 ) || defined( Q_WS_WIN) || defined( Q_WS_MAC )
+#if defined( TQ_WS_X11 ) || defined( TQ_WS_WIN) || defined( TQ_WS_MAC )
class TQFontEngine : public TQShared
{
public:
@@ -87,7 +87,7 @@ public:
TQFontEngine() {
count = 0; cache_count = 0;
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
transformed_fonts = 0;
#endif
}
@@ -97,7 +97,7 @@ public:
virtual Error stringToCMap( const TQChar *str, int len, glyph_t *glyphs,
advance_t *advances, int *nglyphs, bool mirrored ) const = 0;
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
virtual int cmap() const { return -1; }
virtual TQOpenType *openType() const { return 0; }
#endif
@@ -133,7 +133,7 @@ public:
uint cache_cost; // amount of mem used in kb by the font
int cache_count;
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
HDC dc() const;
void getGlyphIndexes( const TQChar *ch, int numChars, glyph_t *glyphs, bool mirrored ) const;
void getCMap();
@@ -157,12 +157,12 @@ public:
static TQPtrDict<TQFontEngine> cacheDict;
short lbearing;
short rbearing;
-#endif // Q_WS_WIN
-#ifdef Q_WS_X11
+#endif // TQ_WS_WIN
+#ifdef TQ_WS_X11
TransformedFont *transformed_fonts;
#endif
};
-#elif defined( Q_WS_QWS )
+#elif defined( TQ_WS_QWS )
class TQGfx;
class TQFontEngine : public TQShared
@@ -248,7 +248,7 @@ enum IndicFeatures {
HalantFeature
};
-#if defined(Q_WS_X11) || defined(Q_WS_WIN)
+#if defined(TQ_WS_X11) || defined(TQ_WS_WIN)
class TQFontEngineBox : public TQFontEngine
{
public:
@@ -270,7 +270,7 @@ public:
int minLeftBearing() const { return 0; }
int minRightBearing() const { return 0; }
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
int cmap() const;
#endif
const char *name() const;
@@ -286,7 +286,7 @@ private:
};
#endif
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
#include "qt_x11_p.h"
@@ -527,7 +527,7 @@ private:
#endif // TQT_NO_XFTFREETYPE
-#elif defined( Q_WS_MAC )
+#elif defined( TQ_WS_MAC )
#include "qt_mac.h"
#include <ntqmap.h>
#include <ntqcache.h>
@@ -584,7 +584,7 @@ public:
TQPaintDevice *dev=NULL, const TQRegion *rgn=NULL) const;
};
-#elif defined( Q_WS_WIN )
+#elif defined( TQ_WS_WIN )
class TQFontEngineWin : public TQFontEngine
{
@@ -627,6 +627,6 @@ public:
};
#endif
-#endif // Q_WS_WIN
+#endif // TQ_WS_WIN
#endif