Commit 96ee4e66 authored by Adrien Maglo's avatar Adrien Maglo

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

Qt: Remove the lines separating the channels in the EPGView widget as they are not displayed properly.
parent c2ef487c
...@@ -103,19 +103,6 @@ void EPGView::delEvent( EPGEvent* event ) ...@@ -103,19 +103,6 @@ void EPGView::delEvent( EPGEvent* event )
//qDebug() << "Del event: " << event->name; //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() void EPGView::updateDuration()
{ {
QDateTime lastItem; QDateTime lastItem;
......
...@@ -56,7 +56,6 @@ signals: ...@@ -56,7 +56,6 @@ signals:
void durationChanged( int seconds ); void durationChanged( int seconds );
void eventFocusedChanged( EPGEvent * ); void eventFocusedChanged( EPGEvent * );
protected: protected:
virtual void drawBackground( QPainter *painter, const QRectF &rect );
QList<QString> m_channels; QList<QString> m_channels;
QDateTime m_startTime; QDateTime m_startTime;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment