From 5cae846c31adbe5adada090319db54006cbe80e3 Mon Sep 17 00:00:00 2001 From: Ludovic Fauvet Date: Sat, 6 Mar 2010 13:55:48 +0100 Subject: [PATCH] epg: highlight ongoing programs in the epg view Signed-off-by: Jean-Baptiste Kempf --- modules/gui/qt4/components/epg/EPGItem.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ); -- 2.39.2