| 900 | } |
| 901 | |
| 902 | void TimelineBar::drawLine(QStylePainter &p, QPointF start, QPointF end) |
| 903 | { |
| 904 | if(start.x() == end.x() || start.y() == end.y()) |
| 905 | { |
| 906 | QStyleOptionFrame opt; |
| 907 | opt.initFrom(viewport()); |
| 908 | opt.rect = QRectF(start, end).toRect(); |
| 909 | opt.frameShape = (start.y() == end.y() ? QFrame::HLine : QFrame::VLine); |
| 910 | p.drawControl(QStyle::CE_ShapedFrame, opt); |
| 911 | } |
| 912 | else |
| 913 | { |
| 914 | p.drawLine(start, end); |
| 915 | } |
| 916 | } |
| 917 | |
| 918 | void TimelineBar::paintMarkers(QPainter &p, const QVector<Marker> &markers, |
| 919 | const QVector<uint32_t> &actions, QRectF markerRect) |
no test coverage detected