Skip to content

Commit

Permalink
Make volume clickable, fixes #206
Browse files Browse the repository at this point in the history
  • Loading branch information
kraxarn committed Feb 11, 2023
1 parent cb992be commit 5bccf90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/widget/volumebutton.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#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),
settings(settings),
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);
Expand Down

0 comments on commit 5bccf90

Please sign in to comment.