forked from qt-creator/qt-creator
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:
@@ -2,10 +2,16 @@ Label {
|
|||||||
text: "%1"
|
text: "%1"
|
||||||
tooltip: "%1"
|
tooltip: "%1"
|
||||||
}
|
}
|
||||||
SpinBox {
|
|
||||||
maximumValue: 9999999
|
SecondColumnLayout {
|
||||||
minimumValue: -9999999
|
SpinBox {
|
||||||
backendValue: backendValues.%2
|
maximumValue: 9999999
|
||||||
Layout.fillWidth: true
|
minimumValue: -9999999
|
||||||
Layout.maximumWidth: 100
|
backendValue: backendValues.%2
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.maximumWidth: 100
|
||||||
|
}
|
||||||
|
|
||||||
|
ExpandingSpacer {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -2,12 +2,17 @@ Label {
|
|||||||
text: "%1"
|
text: "%1"
|
||||||
tooltip: "%1"
|
tooltip: "%1"
|
||||||
}
|
}
|
||||||
SpinBox {
|
|
||||||
maximumValue: 9999999
|
SecondColumnLayout {
|
||||||
minimumValue: -9999999
|
SpinBox {
|
||||||
decimals: 2
|
maximumValue: 9999999
|
||||||
stepSize: 0.1
|
minimumValue: -9999999
|
||||||
backendValue: backendValues.%2
|
decimals: 2
|
||||||
Layout.fillWidth: true
|
stepSize: 0.1
|
||||||
Layout.maximumWidth: 100
|
backendValue: backendValues.%2
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.maximumWidth: 100
|
||||||
|
}
|
||||||
|
ExpandingSpacer {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user