summaryrefslogtreecommitdiffstats
path: root/examples/declarative/layouts
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-10-01 00:17:50 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-10-01 00:17:50 (GMT)
commite48751aecc0cd3750557273cc27117badfcee8c3 (patch)
tree739fb996e61b13860324f434e2511948670cbd26 /examples/declarative/layouts
parent78ff58e9dd073dd4182d6ddcb2667ce6dece018e (diff)
downloadQt-e48751aecc0cd3750557273cc27117badfcee8c3.zip
Qt-e48751aecc0cd3750557273cc27117badfcee8c3.tar.gz
Qt-e48751aecc0cd3750557273cc27117badfcee8c3.tar.bz2
Enhance layout example
It's actually useful now. A lot slower too.
Diffstat (limited to 'examples/declarative/layouts')
-rw-r--r--examples/declarative/layouts/layouts.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/declarative/layouts/layouts.qml b/examples/declarative/layouts/layouts.qml
index 6e22d8b..b54a7f3 100644
--- a/examples/declarative/layouts/layouts.qml
+++ b/examples/declarative/layouts/layouts.qml
@@ -5,7 +5,8 @@ Item { id: resizable
GraphicsObjectContainer{
anchors.fill:parent
QGraphicsWidget{
- geometry:{ "0,0," + parent.width.toString() + "x" + parent.height.toString(); }
+ size.width:parent.width
+ size.height:parent.height
layout: QGraphicsLinearLayout{
LayoutItem{
minimumSize: "100x100"