X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fguide.h;h=1265d135ff2ec6fa16799834f200e70a56b79657;hb=fec4b6aba639dac658d35475512c6f232c8aebe3;hp=b11693146b40e2fb7fe82050c0ddd6e2ccf209cb;hpb=d5e2d9e691b22dab741ed689df6d87478ba24c9f;p=kdenlive diff --git a/src/guide.h b/src/guide.h index b1169314..1265d135 100644 --- a/src/guide.h +++ b/src/guide.h @@ -21,6 +21,7 @@ #define GUIDE_H #include +#include #include "gentime.h" #include "definitions.h" @@ -29,17 +30,20 @@ class CustomTrackView; -class Guide : public QGraphicsLineItem { +class Guide : public QGraphicsLineItem +{ public: - Guide(CustomTrackView *view, GenTime pos, QString label, double fps, double height); + Guide(CustomTrackView *view, GenTime pos, QString label, double height); GenTime position() const; void updateGuide(const GenTime newPos, const QString &comment = QString()); QString label() const; CommentedTime info() const; + void updatePos(); virtual int type() const; virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *w); virtual QRectF boundingRect() const; + virtual QPainterPath shape() const; protected: virtual void hoverEnterEvent(QGraphicsSceneHoverEvent *); @@ -49,9 +53,9 @@ protected: private: GenTime m_position; QString m_label; - double m_fps; CustomTrackView *m_view; int m_width; + QPen m_pen; }; #endif