mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-05-30 11:11:37 +00:00
18 lines
402 B
C++
18 lines
402 B
C++
#ifndef WINTEGRALSPINBOX_H
|
|
#define WINTEGRALSPINBOX_H
|
|
|
|
#include <QSpinBox>
|
|
|
|
// Simple subclass to disable focus stealing on wheel event
|
|
class WIntegralSpinBox : public QSpinBox
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit WIntegralSpinBox(QWidget *pParent);
|
|
~WIntegralSpinBox();
|
|
void wheelEvent(QWheelEvent *pEvent);
|
|
bool eventFilter(QObject *pObj, QEvent *pEvent);
|
|
};
|
|
|
|
#endif // WINTEGRALSPINBOX_H
|