UI: Do not allow mouse wheel for volume slider

This commit fixes the issue of being able to scroll through the mixer
with the mouse wheel without modifying the volume slider.  This
functionality can be temporarily restored by holding a click on the
volume meter.
This commit is contained in:
akapar
2019-04-18 22:02:35 -04:00
committed by jp9000
parent c27a8e7ae9
commit dbd30a8131
4 changed files with 38 additions and 3 deletions

View File

@@ -5,11 +5,14 @@
#include <QtCore/QObject>
class SliderIgnoreScroll : public QSlider {
Q_OBJECT
public:
SliderIgnoreScroll(QWidget *parent = nullptr);
SliderIgnoreScroll(Qt::Orientation orientation, QWidget *parent = nullptr);
protected: