diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/PropertyTemplates/IntEditorTemplate.template b/share/qtcreator/qmldesigner/propertyEditorQmlSources/PropertyTemplates/IntEditorTemplate.template index bd5a899d95a..981340e4cd1 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/PropertyTemplates/IntEditorTemplate.template +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/PropertyTemplates/IntEditorTemplate.template @@ -2,10 +2,16 @@ Label { text: "%1" tooltip: "%1" } -SpinBox { - maximumValue: 9999999 - minimumValue: -9999999 - backendValue: backendValues.%2 - Layout.fillWidth: true - Layout.maximumWidth: 100 + +SecondColumnLayout { + SpinBox { + maximumValue: 9999999 + minimumValue: -9999999 + backendValue: backendValues.%2 + Layout.fillWidth: true + Layout.maximumWidth: 100 + } + + ExpandingSpacer { + } } diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/PropertyTemplates/RealEditorTemplate.template b/share/qtcreator/qmldesigner/propertyEditorQmlSources/PropertyTemplates/RealEditorTemplate.template index d2a259c80e6..fbc24990c87 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/PropertyTemplates/RealEditorTemplate.template +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/PropertyTemplates/RealEditorTemplate.template @@ -2,12 +2,17 @@ Label { text: "%1" tooltip: "%1" } -SpinBox { - maximumValue: 9999999 - minimumValue: -9999999 - decimals: 2 - stepSize: 0.1 - backendValue: backendValues.%2 - Layout.fillWidth: true - Layout.maximumWidth: 100 + +SecondColumnLayout { + SpinBox { + maximumValue: 9999999 + minimumValue: -9999999 + decimals: 2 + stepSize: 0.1 + backendValue: backendValues.%2 + Layout.fillWidth: true + Layout.maximumWidth: 100 + } + ExpandingSpacer { + } }