17 lines
349 B
C
17 lines
349 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);
|
||
|
};
|
||
|
|
||
|
#endif // WINTEGRALSPINBOX_H
|