yolobs-studio/UI/spinbox-ignorewheel.hpp

16 lines
268 B
C++
Raw Permalink Normal View History

2019-07-27 12:47:10 +00:00
#pragma once
#include <QSpinBox>
#include <QInputEvent>
#include <QtCore/QObject>
class SpinBoxIgnoreScroll : public QSpinBox {
Q_OBJECT
public:
SpinBoxIgnoreScroll(QWidget *parent = nullptr);
protected:
virtual void wheelEvent(QWheelEvent *event) override;
};