From dedc189ebff49febea6cd58363e7a2e702e11335 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Wed, 5 May 2021 18:58:51 +1000 Subject: [PATCH] sliders: make certain set functions slots --- app/widget/slider/rationalslider.h | 21 +++++++++++---------- app/widget/slider/timeslider.h | 1 + 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/app/widget/slider/rationalslider.h b/app/widget/slider/rationalslider.h index 71949e258..2febb775e 100644 --- a/app/widget/slider/rationalslider.h +++ b/app/widget/slider/rationalslider.h @@ -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; diff --git a/app/widget/slider/timeslider.h b/app/widget/slider/timeslider.h index e6201e5c2..d024afc43 100644 --- a/app/widget/slider/timeslider.h +++ b/app/widget/slider/timeslider.h @@ -32,6 +32,7 @@ class TimeSlider : public IntegerSlider public: TimeSlider(QWidget* parent = nullptr); +public slots: void SetTimebase(const rational& timebase); protected: