sliders: make certain set functions slots
This commit is contained in:
@@ -54,11 +54,6 @@ public:
|
||||
*/
|
||||
rational GetValue();
|
||||
|
||||
/**
|
||||
* @brief Sets the sliders value
|
||||
*/
|
||||
void SetValue(const rational& d);
|
||||
|
||||
/**
|
||||
* @brief Sets the sliders default value
|
||||
*/
|
||||
@@ -74,11 +69,6 @@ public:
|
||||
*/
|
||||
void SetMaximum(const rational& d);
|
||||
|
||||
/**
|
||||
* @brief Sets the sliders timebase which is also the minimum increment of the slider
|
||||
*/
|
||||
void SetTimebase(const rational& timebase);
|
||||
|
||||
/**
|
||||
* @brief Sets the display type of the slider
|
||||
*/
|
||||
@@ -99,6 +89,17 @@ public:
|
||||
*/
|
||||
void DisableDisplayType(DisplayType type);
|
||||
|
||||
public slots:
|
||||
/**
|
||||
* @brief Sets the sliders timebase which is also the minimum increment of the slider
|
||||
*/
|
||||
void SetTimebase(const rational& timebase);
|
||||
|
||||
/**
|
||||
* @brief Sets the sliders value
|
||||
*/
|
||||
void SetValue(const rational& d);
|
||||
|
||||
protected:
|
||||
virtual QString ValueToString(const QVariant& v) const override;
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ class TimeSlider : public IntegerSlider
|
||||
public:
|
||||
TimeSlider(QWidget* parent = nullptr);
|
||||
|
||||
public slots:
|
||||
void SetTimebase(const rational& timebase);
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user