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

List:       kde-commits
Subject:    KDE/kdesdk/kcachegrind/kcachegrind
From:       David Faure <faure () kde ! org>
Date:       2007-03-15 19:32:21
Message-ID: 1173987141.403075.477.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 642893 by dfaure:

it's either that or readEntry("foo",Qt::black).value<QColor>() if we change the \
overload to return a QVariant, but QColor(Qt::black) is just nicer.


 M  +1 -1      configuration.cpp  


--- trunk/KDE/kdesdk/kcachegrind/kcachegrind/configuration.cpp #642892:642893
@@ -221,7 +221,7 @@
   count = colorConfig.readEntry("Count", 0);
   for (i=1;i<=count;i++) {
     QString n = colorConfig.readEntry(QString("Name%1").arg(i),QString());
-    QColor color = colorConfig.readEntry(QString("Color%1").arg(i), Qt::black);
+    QColor color = colorConfig.readEntry(QString("Color%1").arg(i), \
QColor(Qt::black));  
     if (n.isEmpty()) continue;
 


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

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