/* public */ /* virtual */
void ListViewItem::paintCell( QPainter *p, const QColorGroup &cg,
- int column, int width, int align )
+ int column, int width, int align )
{
- QColorGroup color( cg.foreground(), cg.background(), cg.light(), cg.dark(),
- cg.mid(), m_textColor, m_baseColor );
-
- KListViewItem::paintCell( p, color, column, width, align );
+ QColorGroup color = cg;
+ color.setColor( QColorGroup::Text, m_textColor );
+ color.setColor( QColorGroup::Base, m_baseColor );
+ KListViewItem::paintCell( p, color, column, width, align );
}
-
/*----------------------------------------*/