X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fguide.h;h=6bd392ae654103839c72122962aec159b52123cf;hb=56aee6aedeeed3efd10ada8fe3c229eddc01ef05;hp=e76b6c679ec1f8d4db833151599ea903a141eb35;hpb=95265b50de041c51b5111bc397709fe3ce83b1fc;p=kdenlive diff --git a/src/guide.h b/src/guide.h index e76b6c67..6bd392ae 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,18 +30,20 @@ class CustomTrackView; -class Guide : public QGraphicsLineItem { +class Guide : public QGraphicsLineItem +{ public: - Guide(CustomTrackView *view, GenTime pos, QString label, double scale, double fps, double height); - void updatePosition(double scale); + Guide(CustomTrackView *view, const GenTime &pos, const QString &label, double height); GenTime position() const; - void updateGuide(const GenTime newPos, const QString &comment = QString()); + 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 *); @@ -50,10 +53,9 @@ protected: private: GenTime m_position; QString m_label; - double m_scale; - double m_fps; CustomTrackView *m_view; int m_width; + QPen m_pen; }; #endif