epg: highlight ongoing programs in the epg view

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
This commit is contained in:
Ludovic Fauvet 2010-03-06 13:55:48 +01:00 committed by Jean-Baptiste Kempf
parent 5519059009
commit 5cae846c31

View File

@ -60,7 +60,11 @@ void EPGItem::paint( QPainter *painter, const QStyleOptionGraphicsItem*, QWidget
QRectF mapped = deviceTransform( viewPortTransform ).mapRect( boundingRect() );
painter->setPen( QPen( Qt::black ) );
painter->setBrush( QBrush( Qt::blue ) );
if ( m_current )
painter->setBrush( QBrush( Qt::red ) );
else
painter->setBrush( QBrush( Qt::blue ) );
painter->drawRect( mapped );