]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix the problem of the palette not being updated... this is a workaround. It should...
authorRafael Fernández López <ereslibre@kde.org>
Thu, 6 Dec 2007 11:57:16 +0000 (11:57 +0000)
committerRafael Fernández López <ereslibre@kde.org>
Thu, 6 Dec 2007 11:57:16 +0000 (11:57 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=745558

src/kcategorizedview.cpp

index 7018b33bcf80d0002cbf9948ec02a4415824b3c1..3569e113acea9716f3f2dd4a4d0de4f17b09b1b1 100644 (file)
 #include <math.h> // trunc on C99 compliant systems
 #include <kdefakes.h> // trunc for not C99 compliant systems
 
-#include <QApplication>
 #include <QPainter>
 #include <QScrollBar>
 #include <QPaintEvent>
 
 #include <kstyle.h>
+#include <kapplication.h>
 
 #include "kcategorydrawer.h"
 #include "kcategorizedsortfilterproxymodel.h"
@@ -696,6 +696,7 @@ void KCategorizedView::paintEvent(QPaintEvent *event)
     }
 
     QStyleOptionViewItemV3 option = viewOptions();
+    option.palette = KApplication::palette();
     option.widget = this;
     if (wordWrap())
     {