]> git.sesse.net Git - vlc/commitdiff
Qt: Remove the lines separating the channels in the EPGView widget as they are not...
authorAdrien Maglo <magsoft@videolan.org>
Sun, 13 Jun 2010 20:08:23 +0000 (22:08 +0200)
committerAdrien Maglo <magsoft@videolan.org>
Sun, 13 Jun 2010 20:09:29 +0000 (22:09 +0200)
modules/gui/qt4/components/epg/EPGView.cpp
modules/gui/qt4/components/epg/EPGView.hpp

index e4af52f6f2f3cb6ffdc87121152c9a5a78b00ec6..578f886a97e5e75369a74ec760445475ddc3e232 100644 (file)
@@ -103,19 +103,6 @@ void EPGView::delEvent( EPGEvent* event )
     //qDebug() << "Del event: " << event->name;
 }
 
-void EPGView::drawBackground( QPainter *painter, const QRectF &rect )
-{
-    painter->setPen( QPen( QColor( 72, 72, 72 ) ) );
-
-    QPointF p = mapToScene( width(), 0 );
-
-    for ( int i = 0; i < m_channels.count(); ++i )
-    {
-        painter->drawLine( 0, ( i + 1 ) * TRACKS_HEIGHT,
-                           p.x(), ( i + 1 ) * TRACKS_HEIGHT );
-    }
-}
-
 void EPGView::updateDuration()
 {
     QDateTime lastItem;
index 00b9b77002e8221e65cc2e86563838a1519bf418..8cad5bdf860d5dca1452700a2d2e169b53870b65 100644 (file)
@@ -56,7 +56,6 @@ signals:
     void            durationChanged( int seconds );
     void            eventFocusedChanged( EPGEvent * );
 protected:
-    virtual void    drawBackground( QPainter *painter, const QRectF &rect );
 
     QList<QString>  m_channels;
     QDateTime       m_startTime;