]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/epg/EPGItem.cpp
epg: highlight ongoing programs in the epg view
[vlc] / 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 );