diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-03-01 14:17:42 (GMT) |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-03-01 14:20:21 (GMT) |
commit | 72da039e54a62bf3a481fefc753e0e50ba75df57 (patch) | |
tree | 8ca6e0e3797b84ac0e43b853f874be8cfe55027c /src/gui/painting/qcolor.h | |
parent | 244d4d5610ce288503a73d0aa86f257dce4e74e6 (diff) | |
download | Qt-72da039e54a62bf3a481fefc753e0e50ba75df57.zip Qt-72da039e54a62bf3a481fefc753e0e50ba75df57.tar.gz Qt-72da039e54a62bf3a481fefc753e0e50ba75df57.tar.bz2 |
Added static method isValidColor to QColor.
Reviewed-by: Gunnar Sletta
Diffstat (limited to 'src/gui/painting/qcolor.h')
-rw-r--r-- | src/gui/painting/qcolor.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/painting/qcolor.h b/src/gui/painting/qcolor.h index 332dc25..0ac828d 100644 --- a/src/gui/painting/qcolor.h +++ b/src/gui/painting/qcolor.h @@ -225,6 +225,8 @@ public: QT3_SUPPORT uint pixel(int screen = -1) const; #endif + static bool isValidColor(const QString &name); + private: #ifndef QT3_SUPPORT // do not allow a spec to be used as an alpha value @@ -232,6 +234,7 @@ private: #endif void invalidate(); + bool setColorFromString(const QString &name); Spec cspec; union { |