diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/SpinBox.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/SpinBox.qml index 488a44c34397988ff56f9146e7fbdc1844f96570..14ebc241b0416c94d02ea73597fc18be247f9e1d 100644 --- a/share/qtcreator/qmldesigner/propertyeditor/Qt/SpinBox.qml +++ b/share/qtcreator/qmldesigner/propertyeditor/Qt/SpinBox.qml @@ -10,7 +10,7 @@ QWidget { //This is a special spinBox that does color coding for states property alias singleStep: box.singleStep; property alias minimum: box.minimum property alias maximum: box.maximum - property alias enabled: box.enabled + property bool enabled: true minimumHeight: 22; @@ -62,12 +62,14 @@ QWidget { //This is a special spinBox that does color coding for states ColorScheme { id:scheme; } layout: HorizontalLayout { + spacing: 4 QSpinBox { property alias backendValue: spinBox.backendValue + + enabled: !backendValue.isBound && doubleSpinBox.enabled; keyboardTracking: false; id: box; - enabled: backendValue.isBound property bool readingFromBackend: false; property int valueFromBackend: spinBox.backendValue.value;