]> git.sesse.net Git - vlc/commitdiff
epg: highlight ongoing programs in the epg view
authorLudovic Fauvet <etix@l0cal.com>
Sat, 6 Mar 2010 12:55:48 +0000 (13:55 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 2 Jun 2010 09:59:15 +0000 (11:59 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/qt4/components/epg/EPGItem.cpp

index 8ff61ba95b947561450dae34775a119605236217..13580b5e4e44ab9e19b62fbac03968f9e22cd362 100644 (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 );