From d0ab37d35ca9a9d919c9fc4856f3314bfef6dd5a Mon Sep 17 00:00:00 2001 From: zautrix Date: Tue, 08 Feb 2005 23:15:22 +0000 Subject: fff --- (limited to 'korganizer/kotodoviewitem.cpp') diff --git a/korganizer/kotodoviewitem.cpp b/korganizer/kotodoviewitem.cpp index 78d4027..44db209 100644 --- a/korganizer/kotodoviewitem.cpp +++ b/korganizer/kotodoviewitem.cpp @@ -266,7 +266,7 @@ void KOTodoViewItem::stateChange(bool state) bool KOTodoViewItem::isAlternate() { -#ifndef KORG_NOLVALTERNATION + KOTodoListView *lv = static_cast(listView()); if (lv && lv->alternateBackground().isValid()) { @@ -303,9 +303,6 @@ bool KOTodoViewItem::isAlternate() return m_odd; } return false; -#else - return false; -#endif } void KOTodoViewItem::paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment) @@ -317,8 +314,8 @@ void KOTodoViewItem::paintCell(QPainter *p, const QColorGroup &cg, int column, i else role = QColorGroup::Base; //#ifndef KORG_NOLVALTERNATION - // if (isAlternate()) - // _cg.setColor(QColorGroup::Base, static_cast< KOTodoListView* >(listView())->alternateBackground()); + if (isAlternate()) + _cg.setColor(QColorGroup::Base, static_cast< KOTodoListView* >(listView())->alternateBackground()); bool setColor = KOPrefs::instance()->mTodoViewUsesCatColors; QColor colorToSet; if ( setColor ) { @@ -376,7 +373,7 @@ void KOTodoViewItem::paintCell(QPainter *p, const QColorGroup &cg, int column, i if ( !p ) return; - + p->fillRect( 0, 0, width, height(), _cg.brush( QColorGroup::Base ) ); QListView *lv = listView(); -- cgit v0.9.0.2