#ifndef DMSPINBOX_H #define DMSPINBOX_H #include class DMSpinBox : public QSpinBox { Q_OBJECT public: DMSpinBox(QWidget *parent = nullptr); private: #ifdef QT_DEBUG bool eventFilter(QObject *watched, QEvent *event) override; #endif }; #endif // DMSPINBOX_H