yolobs-studio/UI/slider-ignorewheel.hpp

18 lines
347 B
C++
Raw Normal View History

2019-07-27 12:47:10 +00:00
#pragma once
#include <QSlider>
#include <QInputEvent>
#include <QtCore/QObject>
class SliderIgnoreScroll : public QSlider {
Q_OBJECT
public:
SliderIgnoreScroll(QWidget *parent = nullptr);
2019-09-22 21:19:10 +00:00
SliderIgnoreScroll(Qt::Orientation orientation,
QWidget *parent = nullptr);
2019-07-27 12:47:10 +00:00
protected:
virtual void wheelEvent(QWheelEvent *event) override;
};