[vlc-commits] commit: epg: highlight ongoing programs in the epg view (Ludovic Fauvet )

git at videolan.org git at videolan.org
Wed Jun 2 11:59:52 CEST 2010


vlc | branch: master | Ludovic Fauvet <etix at l0cal.com> | Sat Mar  6 13:55:48 2010 +0100| [5cae846c31adbe5adada090319db54006cbe80e3] | committer: Jean-Baptiste Kempf 

epg: highlight ongoing programs in the epg view

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5cae846c31adbe5adada090319db54006cbe80e3
---

 modules/gui/qt4/components/epg/EPGItem.cpp |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/components/epg/EPGItem.cpp b/modules/gui/qt4/components/epg/EPGItem.cpp
index 8ff61ba..13580b5 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 );
 



More information about the vlc-commits mailing list