From 386f48c2011e49c7c145bad7754a725cabc25dd5 Mon Sep 17 00:00:00 2001 From: zautrix Date: Mon, 27 Jun 2005 21:06:01 +0000 Subject: mont fix --- diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index aeb3974..64b0e95 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp @@ -335,10 +335,9 @@ void MonthViewItem::paint(QPainter *p) int x = 1; if (KOPrefs::instance()->mMonthViewUsesCategoryColor || mDisplayHightlighted || sel ) { - if ( mDisplayHightlighted ) - sel = true; + p->setBackgroundColor( palette().color( QPalette::Normal, \ - sel ? QColorGroup::Highlight : QColorGroup::Background ) ); + sel ||mDisplayHightlighted ? QColorGroup::Highlight : QColorGroup::Background ) ); p->eraseRect( 0, 0, listBox()->maxItemWidth(), heihei ); } -- cgit v0.9.0.2