yolobs-studio/UI/slider-ignorewheel.hpp
2019-09-22 23:19:10 +02:00

17 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;
};