Fix palette problem as workaround. This is needed if the categorization is enabled

svn path=/trunk/KDE/kdebase/apps/; revision=745630
This commit is contained in:
Rafael Fernández López 2007-12-06 16:51:43 +00:00
parent 1ec3860a26
commit 848b3eb621

View file

@ -695,6 +695,9 @@ void KCategorizedView::paintEvent(QPaintEvent *event)
}
QStyleOptionViewItemV3 option = viewOptions();
option.palette = palette(); // viewOptions() doesn't seem to return the correct palette
// if the app was already running and the color scheme was changed
// (ereslibre)
option.widget = this;
if (wordWrap())
{