]> git.sesse.net Git - kdenlive/blobdiff - src/guide.h
Const'ref
[kdenlive] / src / guide.h
index dc455a598380caf50d391d1f91005c9fda40c4dd..6bd392ae654103839c72122962aec159b52123cf 100644 (file)
@@ -21,6 +21,7 @@
 #define GUIDE_H
 
 #include <QGraphicsLineItem>
+#include <QPen>
 
 #include "gentime.h"
 #include "definitions.h"
@@ -33,11 +34,12 @@ class Guide : public QGraphicsLineItem
 {
 
 public:
-    Guide(CustomTrackView *view, GenTime pos, QString label, double fps, double height);
+    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;
@@ -51,9 +53,9 @@ protected:
 private:
     GenTime m_position;
     QString m_label;
-    double m_fps;
     CustomTrackView *m_view;
     int m_width;
+    QPen m_pen;
 };
 
 #endif