diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-02-12 14:08:42 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-02-12 14:08:52 +0900 |
commit | 67bff2edcacb208dc44dcd521386bef686dc6dbf (patch) | |
tree | 538584042585402a59d4b1464b117033778ccc28 /src/kernel/ntqregion.h | |
parent | fb401a891f1b426e9419c0cb16403df407138611 (diff) | |
download | tqt3-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/ntqregion.h')
-rw-r--r-- | src/kernel/ntqregion.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/kernel/ntqregion.h b/src/kernel/ntqregion.h index 934dd9816..8de535fa3 100644 --- a/src/kernel/ntqregion.h +++ b/src/kernel/ntqregion.h @@ -46,7 +46,7 @@ #include "ntqrect.h" #endif // QT_H -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 struct TQRegionPrivate; #endif @@ -96,13 +96,13 @@ public: bool operator!=( const TQRegion &r ) const { return !(operator==(r)); } -#if defined(Q_WS_WIN) +#if defined(TQ_WS_WIN) HRGN handle() const { return data->rgn; } -#elif defined(Q_WS_X11) +#elif defined(TQ_WS_X11) Region handle() const { if(!data->rgn) updateX11Region(); return data->rgn; } -#elif defined(Q_WS_MAC) +#elif defined(TQ_WS_MAC) RgnHandle handle(bool require_rgn=FALSE) const; -#elif defined(Q_WS_QWS) +#elif defined(TQ_WS_QWS) // TQGfx_QWS needs this for region drawing void * handle() const { return data->rgn; } #endif @@ -115,37 +115,37 @@ private: TQRegion( bool ); TQRegion copy() const; void detach(); -#if defined(Q_WS_WIN) +#if defined(TQ_WS_WIN) TQRegion winCombine( const TQRegion &, int ) const; #endif -#if defined(Q_WS_X11) +#if defined(TQ_WS_X11) void updateX11Region() const; void *clipRectangles( int &num ) const; friend void *qt_getClipRects( const TQRegion &, int & ); #endif void exec( const TQByteArray &, int ver = 0 ); struct TQRegionData : public TQShared { -#if defined(Q_WS_WIN) +#if defined(TQ_WS_WIN) HRGN rgn; -#elif defined(Q_WS_X11) +#elif defined(TQ_WS_X11) Region rgn; void *xrectangles; TQRegionPrivate *region; -#elif defined(Q_WS_MAC) +#elif defined(TQ_WS_MAC) uint is_rect:1; TQRect rect; RgnHandle rgn; -#elif defined(Q_WS_QWS) +#elif defined(TQ_WS_QWS) void * rgn; #endif bool is_null; } *data; -#if defined(Q_WS_MAC) +#if defined(TQ_WS_MAC) friend struct qt_mac_rgn_data_cache; friend TQRegionData *qt_mac_get_rgn_data(); friend void qt_mac_free_rgn_data(TQRegionData *); void rectifyRegion(); -#elif defined(Q_WS_WIN) +#elif defined(TQ_WS_WIN) friend class TQETWidget; #endif |