tageditor/gui/minimumemptyspinbox.h

21 lines
407 B
C++

#ifndef MINIMUMEMPTYSPINBOX_H
#define MINIMUMEMPTYSPINBOX_H
#include <QSpinBox>
namespace QtGui {
class MinimumEmptySpinBox : public QSpinBox {
Q_OBJECT
public:
explicit MinimumEmptySpinBox(QWidget *parent = nullptr);
protected:
virtual int valueFromText(const QString &text) const;
virtual QString textFromValue(int val) const;
};
} // namespace QtGui
#endif // MINIMUMEMPTYSPINBOX_H