X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fpositionedit.h;h=ba6e4a5b4debec4a90343403fc87d0c125fb600a;hb=c3302003093710ee247ad84c0fe2ef3c579d417f;hp=ba3163630450a60f1c8c7a2232dc40c8f1ed015b;hpb=6068e93f9cf9f583fb3a9ea1e21e0f346db9a852;p=kdenlive diff --git a/src/positionedit.h b/src/positionedit.h index ba316363..ba6e4a5b 100644 --- a/src/positionedit.h +++ b/src/positionedit.h @@ -1,5 +1,5 @@ /*************************************************************************** - geomeytrval.h - description + positionedit.h - description ------------------- begin : 03 Aug 2008 copyright : (C) 2008 by Marco Gittler @@ -30,12 +30,15 @@ class PositionEdit : public QWidget { Q_OBJECT public: - explicit PositionEdit(const QString name, int pos, int min, int max, const Timecode tc, QWidget* parent = 0); - virtual ~PositionEdit(); + explicit PositionEdit(const QString &name, int pos, int min, int max, const Timecode& tc, QWidget* parent = 0); + ~PositionEdit(); int getPosition() const; void setPosition(int pos); void updateTimecodeFormat(); +public slots: + void setRange(int min, int max, bool absolute = false); + private: TimecodeDisplay *m_display; QSlider *m_slider; @@ -44,7 +47,7 @@ private slots: void slotUpdatePosition(); signals: - void parameterChanged(); + void parameterChanged(int pos = 0); }; #endif