[vlc-commits] commit: Qt: Remove the lines separating the channels in the EPGView widget as they are not displayed properly . (Adrien Maglo )

git at videolan.org git at videolan.org
Sun Jun 13 22:09:42 CEST 2010


vlc | branch: master | Adrien Maglo <magsoft at videolan.org> | Sun Jun 13 22:08:23 2010 +0200| [96ee4e664bc8bb7a69287bfab7f09db15875fd4d] | committer: Adrien Maglo 

Qt: Remove the lines separating the channels in the EPGView widget as they are not displayed properly.

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

 modules/gui/qt4/components/epg/EPGView.cpp |   13 -------------
 modules/gui/qt4/components/epg/EPGView.hpp |    1 -
 2 files changed, 0 insertions(+), 14 deletions(-)

diff --git a/modules/gui/qt4/components/epg/EPGView.cpp b/modules/gui/qt4/components/epg/EPGView.cpp
index e4af52f..578f886 100644
--- a/modules/gui/qt4/components/epg/EPGView.cpp
+++ b/modules/gui/qt4/components/epg/EPGView.cpp
@@ -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;
diff --git a/modules/gui/qt4/components/epg/EPGView.hpp b/modules/gui/qt4/components/epg/EPGView.hpp
index 00b9b77..8cad5bd 100644
--- a/modules/gui/qt4/components/epg/EPGView.hpp
+++ b/modules/gui/qt4/components/epg/EPGView.hpp
@@ -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;



More information about the vlc-commits mailing list