diff options
author | Jan Arve Saether <jan-arve.saether@digia.com> | 2013-03-22 15:05:26 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-03-22 16:15:51 +0100 |
commit | c16bb467502fa9192d0bc5e7fcd84b31d29b213d (patch) | |
tree | c3d4e88cb6566f15424201e6d36745bb8ad956a0 /tests/manual/testbench | |
parent | f4bc1825c943ff0c8130a49fe774d255fa5f86ab (diff) | |
download | qtquickcontrols-c16bb467502fa9192d0bc5e7fcd84b31d29b213d.tar.gz |
Rename properties Layout.{vertical}SizePolicy
..to Layout.fill{Width,Height}
This property now takes a bool, which enables you to write
Layout.fillWidth: true
instead of
Layout.horizontalSizePolicy: Layout.Expanding
Change-Id: Icf2e0dc4757938489908b8997d6c4e80c8be1c50
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'tests/manual/testbench')
-rw-r--r-- | tests/manual/testbench/content/PropertyLayouts.qml | 8 | ||||
-rw-r--r-- | tests/manual/testbench/main.qml | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/manual/testbench/content/PropertyLayouts.qml b/tests/manual/testbench/content/PropertyLayouts.qml index c79771a4..05061fcc 100644 --- a/tests/manual/testbench/content/PropertyLayouts.qml +++ b/tests/manual/testbench/content/PropertyLayouts.qml @@ -64,7 +64,7 @@ QtObject { value: result maximumValue: 9999 minimumValue: -9999 - Layout.horizontalSizePolicy: Layout.Expanding + Layout.fillWidth: true onValueChanged: { if (!ignoreUpdate) { loader.item[name] = value @@ -87,7 +87,7 @@ QtObject { stepSize: 0.5 maximumValue: 9999 minimumValue: -9999 - Layout.horizontalSizePolicy: Layout.Expanding + Layout.fillWidth: true onValueChanged: { if (!ignoreUpdate) { loader.item[name] = value @@ -114,7 +114,7 @@ QtObject { TextField { id: tf text: result - Layout.horizontalSizePolicy: Layout.Expanding + Layout.fillWidth: true onTextChanged: { if (!ignoreUpdate) { loader.item[name] = tf.text @@ -134,7 +134,7 @@ QtObject { Label { height: 20 anchors.right: parent.right - Layout.horizontalSizePolicy: Layout.Expanding + Layout.fillWidth: true text: loader.item[name] !== undefined ? loader.item[name] : "" } } diff --git a/tests/manual/testbench/main.qml b/tests/manual/testbench/main.qml index 7454a121..afe2e3ab 100644 --- a/tests/manual/testbench/main.qml +++ b/tests/manual/testbench/main.qml @@ -108,7 +108,7 @@ ApplicationWindow { Flickable { id: testBenchRect clip: true - Layout.horizontalSizePolicy: Layout.Expanding + Layout.fillWidth: true Image { anchors.fill: parent |