[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kdeui/config
From:       Luboš Luňák <l.lunak () kde ! org>
Date:       2010-08-19 12:06:40
Message-ID: 20100819120640.C8133AC855 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1165450 by lunakl:

make the QColor variant of KConfig::readEntry() also handle "green"



 M  +7 -0      kconfiggroupgui.cpp  


--- trunk/KDE/kdelibs/kdeui/config/kconfiggroupgui.cpp #1165449:1165450
@@ -57,6 +57,13 @@
             col.setNamedColor(QString::fromUtf8(data.constData(), data.length()));
             output = col;
             return true;
+        } else if (!data.contains(',')) {
+            QColor col;
+            col.setNamedColor(QString::fromUtf8(data.constData(), data.length()));
+            if (!col.isValid())
+                kError() << errString << endl;
+            output = col;
+            return true;
         } else {
             const QList<QByteArray> list = data.split(',');
             const int count = list.count();
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic