From e1f5e107641870594a137a531e4751200d505abe Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Fri, 15 Jan 2021 14:38:56 +0300 Subject: [PATCH] Added missed implementation of ContinuousSlider::value. --- Telegram/SourceFiles/ui/widgets/continuous_sliders.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Telegram/SourceFiles/ui/widgets/continuous_sliders.cpp b/Telegram/SourceFiles/ui/widgets/continuous_sliders.cpp index 09f88c8908..7813d2aedb 100644 --- a/Telegram/SourceFiles/ui/widgets/continuous_sliders.cpp +++ b/Telegram/SourceFiles/ui/widgets/continuous_sliders.cpp @@ -50,6 +50,10 @@ QRect ContinuousSlider::getSeekRect() const { : QRect(0, decrease.height() / 2, width(), height() - decrease.width()); } +float64 ContinuousSlider::value() const { + return getCurrentValue(); +} + void ContinuousSlider::setValue(float64 value) { setValue(value, -1); }