summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/graphicswidgets
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-04-21 09:49:11 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2010-04-21 09:49:11 (GMT)
commitfe33a6fd873ca874e63038b1e055c5bc506f7fff (patch)
tree2dba0851132e87bb11604471f9530385579520df /tests/auto/declarative/graphicswidgets
parent096c7d37ec67a4db7b812debed5f51737ec38900 (diff)
downloadQt-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.qml5
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"