2015-07-29 04:41:23 +00:00
|
|
|
#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);
|
2015-07-30 03:53:24 +00:00
|
|
|
bool eventFilter(QObject *pObj, QEvent *pEvent);
|
2015-07-29 04:41:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // WINTEGRALSPINBOX_H
|