From: Ludovic Fauvet Date: Sat, 6 Mar 2010 12:55:48 +0000 (+0100) Subject: epg: highlight ongoing programs in the epg view X-Git-Tag: 1.2.0-pre1~6354 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=5cae846c31adbe5adada090319db54006cbe80e3;hp=5519059009749a0357e95751cdde3b00d1f7f2b3;p=vlc epg: highlight ongoing programs in the epg view Signed-off-by: Jean-Baptiste Kempf --- diff --git a/modules/gui/qt4/components/epg/EPGItem.cpp b/modules/gui/qt4/components/epg/EPGItem.cpp index 8ff61ba95b..13580b5e4e 100644 --- a/modules/gui/qt4/components/epg/EPGItem.cpp +++ b/modules/gui/qt4/components/epg/EPGItem.cpp @@ -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 );