3064887ae2
This reverts commit b5843caa484068d6fcc5f5fe8ee2dc06078500ff. This breaks some hotkeys because the signals are tied to a signal which is now triggered because "toggled" is used instead of "clicked", so just revert it for now for the release and look at it later post-patch.
18 lines
347 B
C++
18 lines
347 B
C++
#pragma once
|
|
|
|
#include <QSlider>
|
|
#include <QInputEvent>
|
|
#include <QtCore/QObject>
|
|
|
|
class SliderIgnoreScroll : public QSlider {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
SliderIgnoreScroll(QWidget *parent = nullptr);
|
|
SliderIgnoreScroll(Qt::Orientation orientation,
|
|
QWidget *parent = nullptr);
|
|
|
|
protected:
|
|
virtual void wheelEvent(QWheelEvent *event) override;
|
|
};
|