diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2016-10-26 12:17:55 +0200 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@qt.io> | 2016-11-15 10:52:59 +0000 |
commit | 441e6bbdb01733c0f9860ce881b61f5907d2d2f8 (patch) | |
tree | 109d060fb5f968084e9a92f7a42bef91fdb6729f /examples/quick/positioners/positioners-attachedproperties.qml | |
parent | 47847bebcacef2bbf3b5627ca18966d7d34d6762 (diff) |
Adjust positioners example for tooling
* Fully qualify all property bindings
* Not using flow as id, because it collides with the property flow
These changes are required so the example works nicely in the designer.
Change-Id: I05972a5a7ebe7277ae7f4230bb68a8b8b011b2f3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'examples/quick/positioners/positioners-attachedproperties.qml')
-rw-r--r-- | examples/quick/positioners/positioners-attachedproperties.qml | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/quick/positioners/positioners-attachedproperties.qml b/examples/quick/positioners/positioners-attachedproperties.qml index ac2c76db47..e7fa59bb9a 100644 --- a/examples/quick/positioners/positioners-attachedproperties.qml +++ b/examples/quick/positioners/positioners-attachedproperties.qml @@ -66,14 +66,14 @@ Rectangle { anchors.left: parent.left anchors.leftMargin: page.width / 32 anchors.topMargin: page.height / 48 - spacing: elementSpacing + spacing: page.elementSpacing //! [0] Rectangle { id: green color: "#80c342" - width: 100 * ratio - height: 100 * ratio + width: 100 * page.ratio + height: 100 * page.ratio Text { anchors.left: parent.right @@ -95,8 +95,8 @@ Rectangle { Rectangle { id: blue color: "#14aaff" - width: 100 * ratio - height: 100 * ratio + width: 100 * page.ratio + height: 100 * page.ratio Text { anchors.left: parent.right @@ -117,8 +117,8 @@ Rectangle { Rectangle { id: purple color: "#6400aa" - width: 100 * ratio - height: 100 * ratio + width: 100 * page.ratio + height: 100 * page.ratio Text { anchors.left: parent.right @@ -140,8 +140,8 @@ Rectangle { Rectangle { id: hidingRect color: "#006325" - width: 100 * ratio - height: 100 * ratio + width: 100 * page.ratio + height: 100 * page.ratio visible: false Text { |