X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fpositionedit.h;h=2666a310f29f48cf06fe93382d7432c261c0436e;hb=aa37ed1efa7f18af7b851c0bb3aaadb9ff8ebe3e;hp=2a2639781645a32613fd67245bdbc773de66a92d;hpb=b7a99cc6862e5dd90bff9dc7206bbbb033ab55dc;p=kdenlive diff --git a/src/positionedit.h b/src/positionedit.h index 2a263978..2666a310 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,13 +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); + explicit PositionEdit(const QString &name, int pos, int min, int max, const Timecode& tc, QWidget* parent = 0); virtual ~PositionEdit(); int getPosition() const; void setPosition(int pos); void updateTimecodeFormat(); - void setRange(int min, int max); +public slots: + void setRange(int min, int max, bool absolute = false); + private: TimecodeDisplay *m_display; QSlider *m_slider; @@ -45,7 +47,7 @@ private slots: void slotUpdatePosition(); signals: - void parameterChanged(int pos); + void parameterChanged(int pos = 0); }; #endif