Files
oak-editor/app/widget/slider/timeslider.h
T
itsmattkc f2013a6f3d created time slider UI widget
Based on the integer slider, this can be used to interactively control time.
2019-12-08 00:11:47 +11:00

25 lines
443 B
C++

#ifndef TIMESLIDER_H
#define TIMESLIDER_H
#include "common/rational.h"
#include "integerslider.h"
class TimeSlider : public IntegerSlider
{
public:
TimeSlider(QWidget* parent = nullptr);
void SetTimebase(const rational& timebase);
protected:
virtual QString ValueToString(const QVariant& v) override;
virtual QVariant StringToValue(const QString& s, bool* ok) override;
private:
rational timebase_;
};
#endif // TIMESLIDER_H