]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/kcategorizedview.cpp
Fix the problem of the palette not being updated... this is a workaround. It should...
[dolphin.git] / 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())
     {