diff options
| author | Christoph Berg <myon@debian.org> | 2026-04-07 19:02:45 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-04-07 19:02:45 +0200 |
| commit | f647d78463c1250ce9c99af664615fafccf5e959 (patch) | |
| tree | 5b00428cef68aef1c9d407e2d4535687422419b6 /mycustomspinbox.h | |
| parent | 0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (diff) | |
New upstream version 3.0.0upstream/3.0.0
Diffstat (limited to 'mycustomspinbox.h')
| -rw-r--r-- | mycustomspinbox.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mycustomspinbox.h b/mycustomspinbox.h new file mode 100644 index 00000000..ec227ff8 --- /dev/null +++ b/mycustomspinbox.h @@ -0,0 +1,18 @@ +#ifndef MYCUSTOMSPINBOX_H +#define MYCUSTOMSPINBOX_H + +#include <QSpinBox> +#include <QString> +#include <QLocale> + +class MyCustomSpinBox : public QSpinBox +{ + Q_OBJECT + public: + explicit MyCustomSpinBox(QWidget *parent = nullptr); + + protected: + QString textFromValue(int val) const override; +}; + +#endif // MYCUSTOMSPINBOX_H |
