QmlDesigner: Fix layout in templates

Because the templates did not use the pre-defined layout,
the layout was bit broken.

Change-Id: I3a11e78a8dd6ac81252fa51270de5d427e5de0c2
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2019-06-12 16:10:23 +02:00
parent da3f9eb5bf
commit 0bcdc93e19
2 changed files with 25 additions and 14 deletions

View File

@@ -2,6 +2,8 @@ Label {
text: "%1"
tooltip: "%1"
}
SecondColumnLayout {
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
@@ -9,3 +11,7 @@ SpinBox {
Layout.fillWidth: true
Layout.maximumWidth: 100
}
ExpandingSpacer {
}
}

View File

@@ -2,6 +2,8 @@ Label {
text: "%1"
tooltip: "%1"
}
SecondColumnLayout {
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
@@ -11,3 +13,6 @@ SpinBox {
Layout.fillWidth: true
Layout.maximumWidth: 100
}
ExpandingSpacer {
}
}