diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2010-04-21 09:49:11 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2010-04-21 09:49:11 (GMT) |
commit | fe33a6fd873ca874e63038b1e055c5bc506f7fff (patch) | |
tree | 2dba0851132e87bb11604471f9530385579520df /tests/auto/declarative/graphicswidgets | |
parent | 096c7d37ec67a4db7b812debed5f51737ec38900 (diff) | |
download | Qt-fe33a6fd873ca874e63038b1e055c5bc506f7fff.zip Qt-fe33a6fd873ca874e63038b1e055c5bc506f7fff.tar.gz Qt-fe33a6fd873ca874e63038b1e055c5bc506f7fff.tar.bz2 |
Fill out QGraphicsLayout bindings
The QGraphicsLayout API is too imperative for good bindings, but now it
is at least possible to initialize values in QML.
Task-number: QTBUG-5760
Diffstat (limited to 'tests/auto/declarative/graphicswidgets')
-rw-r--r-- | tests/auto/declarative/graphicswidgets/data/graphicswidgets.qml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/declarative/graphicswidgets/data/graphicswidgets.qml b/tests/auto/declarative/graphicswidgets/data/graphicswidgets.qml index 714ae7c..f45a78c 100644 --- a/tests/auto/declarative/graphicswidgets/data/graphicswidgets.qml +++ b/tests/auto/declarative/graphicswidgets/data/graphicswidgets.qml @@ -2,6 +2,7 @@ import Qt 4.6 import Qt.widgets 4.6 QGraphicsWidget { + geometry: "20,0,600x400" layout: QGraphicsLinearLayout { orientation: Qt.Horizontal QGraphicsWidget { @@ -9,6 +10,7 @@ QGraphicsWidget { spacing: 10; orientation: Qt.Vertical LayoutItem { QGraphicsLinearLayout.stretchFactor: 1 + QGraphicsLinearLayout.spacing: 1 objectName: "left" minimumSize: "100x100" maximumSize: "300x300" @@ -17,6 +19,7 @@ QGraphicsWidget { } LayoutItem { QGraphicsLinearLayout.stretchFactor: 10 + QGraphicsLinearLayout.spacing: 10 objectName: "left" minimumSize: "100x100" maximumSize: "300x300" @@ -27,7 +30,7 @@ QGraphicsWidget { } QGraphicsWidget { layout: QGraphicsLinearLayout { - spacing: 10; orientation: Qt.Vertical + spacing: 10; orientation: Qt.Horizontal; contentsMargin: 10 LayoutItem { objectName: "left" minimumSize: "100x100" |