summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJekyll Wu <adaptee@gmail.com>2012-02-29 16:01:19 (GMT)
committerJekyll Wu <adaptee@gmail.com>2012-02-29 16:12:57 (GMT)
commit35e9cd847a236e4b495cb1c03347ee8f59a4d8e8 (patch)
tree9445b02d6ceb2f13a90e831c20b8c2fe6af0948a
parent2f7a0965f539f5fc6d9657b2c0fecaa68a8c8b37 (diff)
Enable looking up colors in the X11 color database.
FEATURE:138740 FIXED-IN:4.9.0
-rw-r--r--src/ColorSchemeManager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ColorSchemeManager.cpp b/src/ColorSchemeManager.cpp
index f1cb33a..700f438 100644
--- a/src/ColorSchemeManager.cpp
+++ b/src/ColorSchemeManager.cpp
@@ -157,6 +157,10 @@ bool KDE3ColorSchemeReader::readTitleLine(const QString& line, ColorScheme* sche
ColorSchemeManager::ColorSchemeManager()
: _haveLoadedAll(false)
{
+#ifdef Q_WS_X11
+ // Allow looking up colors in the X11 color database
+ QColor::setAllowX11ColorNames(true);
+#endif
}
ColorSchemeManager::~ColorSchemeManager()