Commit b8635eb0 authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: EPGRuler: add timeline

parent 6c75bad6
...@@ -93,4 +93,12 @@ void EPGRuler::paintEvent( QPaintEvent *event ) ...@@ -93,4 +93,12 @@ void EPGRuler::paintEvent( QPaintEvent *event )
posx += spacing; posx += spacing;
current = current.addSecs( 60 * 60 ); current = current.addSecs( 60 * 60 );
} }
/* draw current time line */
posx = localStartTime.secsTo( QDateTime::currentDateTime() ) * m_scale;
if ( posx <= width() && posx >= 0 )
{
p.setPen( QPen( QColor( 255, 0 , 0, 128 ) ) );
p.drawLine( posx, 15, posx, 30 );
}
} }
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