WIntegralSpinBox: Make use of in-class initializers where applicable

This commit is contained in:
Lioncash 2020-06-28 07:02:22 -04:00
parent d6cbc0d247
commit fcf40ec18c
2 changed files with 5 additions and 6 deletions

View File

@ -7,9 +7,7 @@ WIntegralSpinBox::WIntegralSpinBox(QWidget *pParent) : QSpinBox(pParent)
lineEdit()->installEventFilter(this);
}
WIntegralSpinBox::~WIntegralSpinBox()
{
}
WIntegralSpinBox::~WIntegralSpinBox() = default;
void WIntegralSpinBox::wheelEvent(QWheelEvent *pEvent)
{

View File

@ -9,9 +9,10 @@ class WIntegralSpinBox : public QSpinBox
Q_OBJECT
public:
explicit WIntegralSpinBox(QWidget *pParent);
~WIntegralSpinBox();
void wheelEvent(QWheelEvent *pEvent);
bool eventFilter(QObject *pObj, QEvent *pEvent);
~WIntegralSpinBox() override;
void wheelEvent(QWheelEvent* pEvent) override;
bool eventFilter(QObject* pObj, QEvent* pEvent) override;
};
#endif // WINTEGRALSPINBOX_H