diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
commit | eba47f8f0637f451e21348187591e1f1fd58ac74 (patch) | |
tree | 448f10b95c656604acc331a3236c1e59bde5c1ad /kolourpaint/kpcolor.h | |
parent | c7e8736c69373f48b0401319757c742e8607431a (diff) | |
download | tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip |
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kolourpaint/kpcolor.h')
-rw-r--r-- | kolourpaint/kpcolor.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kolourpaint/kpcolor.h b/kolourpaint/kpcolor.h index 131d4b61..255d645f 100644 --- a/kolourpaint/kpcolor.h +++ b/kolourpaint/kpcolor.h @@ -30,9 +30,9 @@ #define __kp_color_h__ -#include <qcolor.h> +#include <tqcolor.h> -class QDataStream; +class TQDataStream; // @@ -42,10 +42,10 @@ class QDataStream; // error handling, reporting (noisy kdError()'s) and recovery. // // In general, you should pass around kpColor objects instead of QRgb -// and QColor. Only convert an opaque kpColor to a QColor (using toQColor()) +// and TQColor. Only convert an opaque kpColor to a TQColor (using toQColor()) // if you need to draw something onscreen. Constructing a kpColor object -// from QColor is probably wrong since onscreen representations of color -// are not guaranteed to be faithful (due to QColor color allocation). +// from TQColor is probably wrong since onscreen representations of color +// are not guaranteed to be faithful (due to TQColor color allocation). // class kpColor { @@ -54,8 +54,8 @@ public: kpColor (int red, int green, int blue, bool isTransparent = false); kpColor (const QRgb &rgba); kpColor (const kpColor &rhs); - friend QDataStream &operator<< (QDataStream &stream, const kpColor &color); - friend QDataStream &operator>> (QDataStream &stream, kpColor &color); + friend TQDataStream &operator<< (TQDataStream &stream, const kpColor &color); + friend TQDataStream &operator>> (TQDataStream &stream, kpColor &color); kpColor &operator= (const kpColor &rhs); bool operator== (const kpColor &rhs) const; bool operator!= (const kpColor &rhs) const; @@ -84,17 +84,17 @@ public: QRgb toQRgb () const; // (only valid if isOpaque()) - // (const QColor & return results in fewer color reallocations) - const QColor &toQColor () const; + // (const TQColor & return results in fewer color reallocations) + const TQColor &toQColor () const; - QColor maskColor () const; + TQColor maskColor () const; private: bool m_rgbaIsValid; QRgb m_rgba; mutable bool m_colorCacheIsValid; - mutable QColor m_colorCache; + mutable TQColor m_colorCache; }; |