summaryrefslogtreecommitdiffstats
path: root/src/kernel/ntqpaintdevice.h
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-02-12 14:08:42 +0900
committerMichele Calgaro <[email protected]>2024-02-12 14:08:52 +0900
commit67bff2edcacb208dc44dcd521386bef686dc6dbf (patch)
tree538584042585402a59d4b1464b117033778ccc28 /src/kernel/ntqpaintdevice.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 <[email protected]>
Diffstat (limited to 'src/kernel/ntqpaintdevice.h')
-rw-r--r--src/kernel/ntqpaintdevice.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/kernel/ntqpaintdevice.h b/src/kernel/ntqpaintdevice.h
index 114cf8b1c..8ce90f069 100644
--- a/src/kernel/ntqpaintdevice.h
+++ b/src/kernel/ntqpaintdevice.h
@@ -46,7 +46,7 @@
#include "ntqrect.h"
#endif // QT_H
-#if defined(Q_WS_QWS)
+#if defined(TQ_WS_QWS)
class TQWSDisplay;
class TQGfx;
#endif
@@ -56,7 +56,7 @@ class TQString;
class TQTextItem;
-#if defined(Q_WS_X11)
+#if defined(TQ_WS_X11)
struct TQPaintDeviceX11Data;
#endif
@@ -95,18 +95,18 @@ public:
// Windows: get device context
// X-Windows: get drawable
-#if defined(Q_WS_WIN)
+#if defined(TQ_WS_WIN)
virtual HDC handle() const;
-#elif defined(Q_WS_X11)
+#elif defined(TQ_WS_X11)
virtual TQt::HANDLE handle() const;
virtual TQt::HANDLE x11RenderHandle() const;
-#elif defined(Q_WS_MAC)
+#elif defined(TQ_WS_MAC)
virtual TQt::HANDLE handle() const;
-#elif defined(Q_WS_QWS)
+#elif defined(TQ_WS_QWS)
virtual TQt::HANDLE handle() const;
#endif
-#if defined(Q_WS_X11)
+#if defined(TQ_WS_X11)
Display *x11Display() const;
int x11Screen() const;
int x11Depth() const;
@@ -146,7 +146,7 @@ public:
static void x11SetAppDpiY( int, int );
#endif
-#if defined(Q_WS_QWS)
+#if defined(TQ_WS_QWS)
static TQWSDisplay *qwsDisplay();
virtual unsigned char * scanLine(int) const;
virtual int bytesPerLine() const;
@@ -215,9 +215,9 @@ public:
protected:
TQPaintDevice( uint devflags );
-#if defined(Q_WS_WIN)
+#if defined(TQ_WS_WIN)
HDC hdc; // device context
-#elif defined(Q_WS_X11)
+#elif defined(TQ_WS_X11)
TQt::HANDLE hd; // handle to drawable
TQt::HANDLE rendhd; // handle to RENDER pict
@@ -225,12 +225,12 @@ protected:
void cloneX11Data( const TQPaintDevice * );
virtual void setX11Data( const TQPaintDeviceX11Data* );
TQPaintDeviceX11Data* getX11Data( bool def=FALSE ) const;
-#elif defined(Q_WS_MAC)
+#elif defined(TQ_WS_MAC)
#if !defined( TQMAC_NO_QUARTZ )
CGContextRef ctx;
#endif
void * hd;
-#elif defined(Q_WS_QWS)
+#elif defined(TQ_WS_QWS)
TQt::HANDLE hd;
#endif
@@ -244,7 +244,7 @@ protected:
friend class TQPainter;
friend class TQPaintDeviceMetrics;
-#if defined(Q_WS_MAC)
+#if defined(TQ_WS_MAC)
#ifndef TQMAC_NO_QUARTZ
virtual CGContextRef macCGContext(bool clipped=TRUE) const;
#endif
@@ -255,13 +255,13 @@ protected:
const TQPaintDevice *,
int, int, int, int, TQt::RasterOp, bool );
#endif
-#if defined(Q_WS_X11)
+#if defined(TQ_WS_X11)
friend void tqt_init_internal( int *, char **, Display *, TQt::HANDLE, TQt::HANDLE );
friend void tqt_cleanup();
#endif
private:
-#if defined(Q_WS_X11)
+#if defined(TQ_WS_X11)
static Display *x_appdisplay;
static int x_appscreen;
@@ -304,7 +304,7 @@ void bitBlt( TQPaintDevice *dst, int dx, int dy,
int conversion_flags=0 );
-#if defined(Q_WS_X11)
+#if defined(TQ_WS_X11)
struct TQ_EXPORT TQPaintDeviceX11Data : public TQShared {
Display* x_display;
@@ -332,7 +332,7 @@ inline bool TQPaintDevice::isExtDev() const
inline bool TQPaintDevice::paintingActive() const
{ return painters != 0; }
-#if defined(Q_WS_X11)
+#if defined(TQ_WS_X11)
inline Display *TQPaintDevice::x11Display() const
{ return x11Data ? x11Data->x_display : x_appdisplay; }
@@ -405,7 +405,7 @@ inline void *TQPaintDevice::x11AppVisual()
inline bool TQPaintDevice::x11AppDefaultVisual()
{ return x_appdefvisual; }
-#endif // Q_WS_X11
+#endif // TQ_WS_X11
TQ_EXPORT