From d3a053c2c97b17c15c7b9d8f37a7a09e88b0418d Mon Sep 17 00:00:00 2001 From: Thomas Hartmann <Thomas.Hartmann@nokia.com> Date: Wed, 24 Mar 2010 17:09:17 +0100 Subject: [PATCH] QmlDesigner.propertyEditor: fixing SpinBox --- share/qtcreator/qmldesigner/propertyeditor/Qt/SpinBox.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/SpinBox.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/SpinBox.qml index 488a44c3439..14ebc241b04 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; -- GitLab