summaryrefslogtreecommitdiff
path: root/mycustomspinbox.h
diff options
context:
space:
mode:
Diffstat (limited to 'mycustomspinbox.h')
-rw-r--r--mycustomspinbox.h18
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