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