From 5bccf90a70c857e74f80ac47b5d7ef5dfed4d573 Mon Sep 17 00:00:00 2001 From: kraxarn Date: Sat, 11 Feb 2023 13:07:46 +0100 Subject: [PATCH] Make volume clickable, fixes #206 --- src/widget/volumebutton.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widget/volumebutton.cpp b/src/widget/volumebutton.cpp index f1dbe70a..d5ef77c9 100644 --- a/src/widget/volumebutton.cpp +++ b/src/widget/volumebutton.cpp @@ -1,6 +1,7 @@ #include "volumebutton.hpp" #include "mainwindow.hpp" #include "util/shortcut.hpp" +#include "widget/clickableslider.hpp" VolumeButton::VolumeButton(lib::settings &settings, lib::spt::api &spotify, QWidget *parent) : QToolButton(parent), @@ -8,8 +9,7 @@ VolumeButton::VolumeButton(lib::settings &settings, lib::spt::api &spotify, QWid spotify(spotify) { // Volume slider - volume = new QSlider(this); - volume->setOrientation(Qt::Orientation::Vertical); + volume = new ClickableSlider(Qt::Vertical, this); volume->setFixedHeight(height); volume->setFixedWidth(width); volume->setMinimum(minimum);