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 );
+ }
}