summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qspinbox.h
diff options
context:
space:
mode:
authorKevin Ottens <ervin@kde.org>2013-04-25 17:36:17 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-05-07 18:40:43 +0200
commit48e3cc30ed828e2d18bae2d95f30c71e166ed65c (patch)
tree0ae4c00e489e9d56449c055d86cedf70ac3a52d0 /src/widgets/widgets/qspinbox.h
parent44c47af950c040603da7145e4f1437b5546915ba (diff)
Set the base used to display the spin box value
Provide a new displayIntegerBase property which control the base used by the spin box to display the value in its internal line edit. Change-Id: Ibadc37107db8770d757b64350946bf19142e8f6c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/widgets/widgets/qspinbox.h')
-rw-r--r--src/widgets/widgets/qspinbox.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/widgets/widgets/qspinbox.h b/src/widgets/widgets/qspinbox.h
index 4963f87a1a..98e809e141 100644
--- a/src/widgets/widgets/qspinbox.h
+++ b/src/widgets/widgets/qspinbox.h
@@ -61,6 +61,7 @@ class Q_WIDGETS_EXPORT QSpinBox : public QAbstractSpinBox
Q_PROPERTY(int maximum READ maximum WRITE setMaximum)
Q_PROPERTY(int singleStep READ singleStep WRITE setSingleStep)
Q_PROPERTY(int value READ value WRITE setValue NOTIFY valueChanged USER true)
+ Q_PROPERTY(int displayIntegerBase READ displayIntegerBase WRITE setDisplayIntegerBase)
public:
explicit QSpinBox(QWidget *parent = 0);
@@ -87,6 +88,8 @@ public:
void setRange(int min, int max);
+ int displayIntegerBase() const;
+ void setDisplayIntegerBase(int base);
protected:
bool event(QEvent *event);