vlc | branch: master | Francois Cartegnie <[email protected]> | Wed Mar 23 21:44:26 2011 +0100| [19e198c54b1998a894767096c9f0e15e7ff482b2] | committer: Francois Cartegnie
Qt: EPG: epgview: add timeline > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=19e198c54b1998a894767096c9f0e15e7ff482b2 --- modules/gui/qt4/components/epg/EPGView.cpp | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/modules/gui/qt4/components/epg/EPGView.cpp b/modules/gui/qt4/components/epg/EPGView.cpp index 53cd25d..cddd58d 100644 --- a/modules/gui/qt4/components/epg/EPGView.cpp +++ b/modules/gui/qt4/components/epg/EPGView.cpp @@ -36,9 +36,14 @@ EPGGraphicsScene::EPGGraphicsScene( QObject *parent ) : QGraphicsScene( parent ) void EPGGraphicsScene::drawBackground( QPainter *painter, const QRectF &rect) { + EPGView *epgView; painter->setPen( QPen( QColor( 224, 224, 224 ) ) ); for( int y = rect.top() + TRACKS_HEIGHT ; y < rect.bottom() ; y += TRACKS_HEIGHT ) painter->drawLine( QLineF( rect.left(), y, rect.right(), y ) ); + epgView = qobject_cast<EPGView *>(parent()); + int x = epgView->startTime().secsTo( epgView->baseTime() ); + painter->setPen( QPen( QColor( 255, 192, 192 ) ) ); + painter->drawLine( QLineF( x, rect.top(), x, rect.bottom() ) ); } EPGView::EPGView( QWidget *parent ) : QGraphicsView( parent ) _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
