2015-04-22 19:33:53 +02:00
|
|
|
#ifndef MINIMUMEMPTYSPINBOX_H
|
|
|
|
#define MINIMUMEMPTYSPINBOX_H
|
|
|
|
|
|
|
|
#include <QSpinBox>
|
|
|
|
|
|
|
|
namespace QtGui {
|
|
|
|
|
2018-03-07 01:18:01 +01:00
|
|
|
class MinimumEmptySpinBox : public QSpinBox {
|
2015-04-22 19:33:53 +02:00
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit MinimumEmptySpinBox(QWidget *parent = nullptr);
|
2018-03-07 01:18:01 +01:00
|
|
|
|
2015-04-22 19:33:53 +02:00
|
|
|
protected:
|
2019-06-01 12:45:12 +02:00
|
|
|
int valueFromText(const QString &text) const override;
|
|
|
|
QString textFromValue(int val) const override;
|
2015-04-22 19:33:53 +02:00
|
|
|
};
|
|
|
|
|
2018-03-07 01:18:01 +01:00
|
|
|
} // namespace QtGui
|
2015-04-22 19:33:53 +02:00
|
|
|
|
|
|
|
#endif // MINIMUMEMPTYSPINBOX_H
|