f53df7da64
Code submissions have continually suffered from formatting inconsistencies that constantly have to be addressed. Using clang-format simplifies this by making code formatting more consistent, and allows automation of the code formatting so that maintainers can focus more on the code itself instead of code formatting.
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;
|
|
};
|