setToolTip(label);
setLine(0, 0, 0, height);
setPos(m_position.frames(m_fps), 0);
- setPen(QPen(QBrush(QColor(0, 0, 200, 180)), 1));
+ setPen(QPen(QBrush(QColor(0, 0, 200, 180)), 2));
setZValue(999);
setAcceptsHoverEvents(true);
const QFontMetrics metric = m_view->fontMetrics();
} else return QGraphicsLineItem::boundingRect();
}
+// virtual
+QPainterPath Guide::shape() const
+{
+ QPainterPath path;
+ path.addRect(line().x1(), line().y1(), line().x2() - line().x1(), line().y2() - line().y1());
+ if (KdenliveSettings::showmarkers()) {
+ const QFontMetrics metric = m_view->fontMetrics();
+ int height = metric.height();
+ path.addRoundedRect(line().x1(), line().y1() + 10, m_width / static_cast <CustomTrackScene*>(scene())->scale(), height, 3, 3);
+ }
+ return path;
+}
+
// virtual
void Guide::paint(QPainter *painter, const QStyleOptionGraphicsItem */*option*/, QWidget */*w*/)
{