summaryrefslogtreecommitdiff
authordrw <drw>2002-12-30 16:24:19 (UTC)
committer drw <drw>2002-12-30 16:24:19 (UTC)
commit74fae7e68acd91e61bdff6f7703021246a0c1fbc (patch) (unidiff)
tree41e9fdb306e858644b3f15e5dbc0b204009136b2
parent627b209bfde5670061e9119a2c3038fa542c351c (diff)
downloadopie-74fae7e68acd91e61bdff6f7703021246a0c1fbc.zip
opie-74fae7e68acd91e61bdff6f7703021246a0c1fbc.tar.gz
opie-74fae7e68acd91e61bdff6f7703021246a0c1fbc.tar.bz2
Use background color for alternating transaction lines (like todo does now).
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/checkbook/checkbook.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/checkbook/checkbook.cpp b/noncore/apps/checkbook/checkbook.cpp
index 7a6b7cc..5fe660c 100644
--- a/noncore/apps/checkbook/checkbook.cpp
+++ b/noncore/apps/checkbook/checkbook.cpp
@@ -609,13 +609,13 @@ void CBListItem::paintCell( QPainter *p, const QColorGroup &cg, int column, int
609 if ( pm && !pm->isNull() ) 609 if ( pm && !pm->isNull() )
610 { 610 {
611 _cg.setBrush( QColorGroup::Base, QBrush( cg.base(), *pm ) ); 611 _cg.setBrush( QColorGroup::Base, QBrush( cg.base(), *pm ) );
612 p->setBrushOrigin( -listView()->contentsX(), -listView()->contentsY() ); 612 p->setBrushOrigin( -listView()->contentsX(), -listView()->contentsY() );
613 } 613 }
614 else if ( isAltBackground() ) 614 else if ( isAltBackground() )
615 _cg.setColor(QColorGroup::Base, QColor( 200, 255, 200 ) ); 615 _cg.setColor(QColorGroup::Base, cg.background() );
616 616
617 QListViewItem::paintCell(p, _cg, column, width, align); 617 QListViewItem::paintCell(p, _cg, column, width, align);
618} 618}
619 619
620bool CBListItem::isAltBackground() 620bool CBListItem::isAltBackground()
621{ 621{