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/dialogs/qcolordialog.cpp | |
parent | fb401a891f1b426e9419c0cb16403df407138611 (diff) | |
download | tqt-67bff2edcacb208dc44dcd521386bef686dc6dbf.tar.gz tqt-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/dialogs/qcolordialog.cpp')
-rw-r--r-- | src/dialogs/qcolordialog.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/dialogs/qcolordialog.cpp b/src/dialogs/qcolordialog.cpp index addbd1bf8..df0424376 100644 --- a/src/dialogs/qcolordialog.cpp +++ b/src/dialogs/qcolordialog.cpp @@ -58,12 +58,12 @@ #include "ntqsettings.h" #include "ntqpopupmenu.h" -#ifdef Q_WS_MAC +#ifdef TQ_WS_MAC TQRgb macGetRgba( TQRgb initial, bool *ok, TQWidget *parent, const char* name ); TQColor macGetColor( const TQColor& initial, TQWidget *parent, const char *name ); #endif -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 #include "private/tqttdeintegration_x11_p.h" #endif @@ -1485,10 +1485,10 @@ TQColorDialog::TQColorDialog(TQWidget* parent, const char* name, bool modal) : TQColor TQColorDialog::getColor( const TQColor& initial, TQWidget *parent, const char *name ) { -#if defined(Q_WS_X11) +#if defined(TQ_WS_X11) if( TQTDEIntegration::enabled()) return TQTDEIntegration::getColor( initial, parent, name ); -#elif defined(Q_WS_MAC) +#elif defined(TQ_WS_MAC) return macGetColor(initial, parent, name); #endif @@ -1525,14 +1525,14 @@ TQColor TQColorDialog::getColor( const TQColor& initial, TQWidget *parent, TQRgb TQColorDialog::getRgba( TQRgb initial, bool *ok, TQWidget *parent, const char* name ) { -#if defined(Q_WS_MAC) +#if defined(TQ_WS_MAC) if( TQTDEIntegration::enabled()) { TQColor color = TQTDEIntegration::getColor( TQColor( initial ), parent, name ); if( ok ) *ok = color.isValid(); return color.rgba(); } -#elif defined(Q_WS_MAC) +#elif defined(TQ_WS_MAC) return macGetRgba(initial, ok, parent, name); #endif |