sliders: make certain set functions slots

This commit is contained in:
itsmattkc
2021-05-05 18:58:51 +10:00
parent e219941147
commit dedc189ebf
2 changed files with 12 additions and 10 deletions
+11 -10
View File
@@ -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;
+1
View File
@@ -32,6 +32,7 @@ class TimeSlider : public IntegerSlider
public:
TimeSlider(QWidget* parent = nullptr);
public slots:
void SetTimebase(const rational& timebase);
protected: