Commit 5cae846c authored by Ludovic Fauvet's avatar Ludovic Fauvet Committed by Jean-Baptiste Kempf

epg: highlight ongoing programs in the epg view

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 55190590
...@@ -60,7 +60,11 @@ void EPGItem::paint( QPainter *painter, const QStyleOptionGraphicsItem*, QWidget ...@@ -60,7 +60,11 @@ void EPGItem::paint( QPainter *painter, const QStyleOptionGraphicsItem*, QWidget
QRectF mapped = deviceTransform( viewPortTransform ).mapRect( boundingRect() ); QRectF mapped = deviceTransform( viewPortTransform ).mapRect( boundingRect() );
painter->setPen( QPen( Qt::black ) ); 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 ); painter->drawRect( mapped );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment