diff options
Diffstat (limited to 'src/controls/SpinBox.qml')
| -rw-r--r-- | src/controls/SpinBox.qml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/controls/SpinBox.qml b/src/controls/SpinBox.qml index 4b6d4e85..c82e3410 100644 --- a/src/controls/SpinBox.qml +++ b/src/controls/SpinBox.qml @@ -153,6 +153,8 @@ Control { } /*! \internal */ + property bool __initialized: false + /*! \internal */ readonly property bool __upEnabled: value != maximumValue; /*! \internal */ readonly property bool __downEnabled: value != minimumValue; @@ -196,9 +198,13 @@ Control { /*! \internal */ onMinimumValueChanged: input.setValue(value) /*! \internal */ - Component.onCompleted: input.setValue(value) + Component.onCompleted: { + __initialized = true; + input.setValue(value) + } + /*! \internal */ - onValueChanged: input.setValue(value) + onValueChanged: if (__initialized) input.setValue(value) Accessible.name: input.text Accessible.role: Accessible.SpinBox |
