]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/epg/EPGRuler.cpp
Qt: more of the same simplifications and warnings
[vlc] / modules / gui / qt4 / components / epg / EPGRuler.cpp
index 9eb3404a5106fc1a8e43fed7ba397e7732a41772..76053914b343318add017d858eb51cfd8d140404 100644 (file)
@@ -93,4 +93,14 @@ void EPGRuler::paintEvent( QPaintEvent *event )
         posx += spacing;
         current = current.addSecs( 60 * 60 );
     }
+
+    /* draw current time line */
+    posx = localStartTime.secsTo( QDateTime::currentDateTime() ) * m_scale;
+    if ( posx <= width() && posx >= 0 )
+    {
+        QPen pen( QPen( QColor( 255, 0 , 0, 128 ) ) );
+        pen.setWidth( 3 );
+        p.setPen( pen );
+        p.drawLine( posx - 1, 15, posx - 1, 30 );
+    }
 }