summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Arve Saether <jan-arve.saether@digia.com>2013-04-22 12:52:51 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-22 12:56:57 +0200
commit2230afcb3e891dd48531e24e1dc6fcb32e72bbc7 (patch)
treede9cd8c8dd73f3c4ded538dd90cda8cd365f5be5
parentbf713690738c4e83a5c72b57b34516f935baf0e9 (diff)
downloadqtquickcontrols-2230afcb3e891dd48531e24e1dc6fcb32e72bbc7.tar.gz
Remove usages of width/height in layout items.
The usage of width/height is discouraged. Applications should instead use Layout.preferredWidth and Layout.preferredHeight Change-Id: I9fc3af0776319402f3a63244977c17e753bcfcc7 Reviewed-by: Caroline Chao <caroline.chao@digia.com>
-rw-r--r--examples/basiclayouts/main.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/basiclayouts/main.qml b/examples/basiclayouts/main.qml
index fd107cc1..7b83a2e0 100644
--- a/examples/basiclayouts/main.qml
+++ b/examples/basiclayouts/main.qml
@@ -111,8 +111,8 @@ ApplicationWindow {
TextArea {
id: t3
text: "This fills the whole cell"
- width: 200
- height: 400
+ Layout.preferredWidth: 200
+ Layout.preferredHeight: 400
Layout.fillHeight: true
Layout.fillWidth: true
}