Q_OBJECT
public:
- SimpleKeyframeWidget(Timecode t, int duration, QWidget* parent = 0);
- virtual ~SimpleKeyframeWidget();
+ explicit SimpleKeyframeWidget(const Timecode &t, int duration, QWidget* parent = 0);
+ ~SimpleKeyframeWidget();
- int getPosition();
+ int getPosition() const;
void setKeyframes(const QList <int> &keyframes);
void addKeyframe(int pos = -1);
+ void updateTimecodeFormat();
+
public slots:
void slotSetPosition(int pos = -1, bool update = true);
+private slots:
+ void slotAtKeyframe(bool atKeyframe);
+
signals:
void positionChanged(int pos);
void keyframeAdded(int pos);
QToolButton *m_buttonAddDelete;
QToolButton *m_buttonPrevious;
QToolButton *m_buttonNext;
- //QToolButton *m_buttonSync;
TimecodeDisplay *m_time;
};