diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2011-05-06 13:23:43 (GMT) |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-05-06 13:33:12 (GMT) |
commit | a423ff5474b89028eeca95b254f5184311c8223b (patch) | |
tree | 604540e9ca4b26fae91c1b8a121e9a92677bee0f /src | |
parent | 891b6ac7236d21b69bdb54b00051422cee004059 (diff) | |
download | Qt-a423ff5474b89028eeca95b254f5184311c8223b.zip Qt-a423ff5474b89028eeca95b254f5184311c8223b.tar.gz Qt-a423ff5474b89028eeca95b254f5184311c8223b.tar.bz2 |
Remove warning from QColor::setNamedColor().
This warning is pointless as the user can anyway check if the color is
valid after making the call by calling isValid(). Using isValidColor()
could be used but it has a big performance overhead as validation then
needs to be done twice.
Task-number: QTBUG-19098
Reviewed-by: Erik Verbruggen
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/painting/qcolor.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/painting/qcolor.cpp b/src/gui/painting/qcolor.cpp index ff6c24e..cd87d21 100644 --- a/src/gui/painting/qcolor.cpp +++ b/src/gui/painting/qcolor.cpp @@ -532,8 +532,7 @@ QString QColor::name() const void QColor::setNamedColor(const QString &name) { - if (!setColorFromString(name)) - qWarning("QColor::setNamedColor: Unknown color name '%s'", name.toLatin1().constData()); + setColorFromString(name); } /*! |