mirror of
https://github.com/videolan/vlc.git
synced 2024-12-03 06:43:40 +08:00
epg: highlight ongoing programs in the epg view
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
This commit is contained in:
parent
5519059009
commit
5cae846c31
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user