summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/graphicswidgets/data
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2009-11-17 04:04:21 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2009-11-17 04:04:21 (GMT)
commit4d5d94b7cf41fbfefd37812ae3b311dd619a6731 (patch)
tree2de262a647fb49b371c1790e44e96486a0adf27d /tests/auto/declarative/graphicswidgets/data
parent89464ba786864f8a905c0d9939033970ac10f978 (diff)
downloadQt-4d5d94b7cf41fbfefd37812ae3b311dd619a6731.zip
Qt-4d5d94b7cf41fbfefd37812ae3b311dd619a6731.tar.gz
Qt-4d5d94b7cf41fbfefd37812ae3b311dd619a6731.tar.bz2
graphicswidgets basic autotest
Diffstat (limited to 'tests/auto/declarative/graphicswidgets/data')
-rw-r--r--tests/auto/declarative/graphicswidgets/data/graphicswidgets.qml57
1 files changed, 57 insertions, 0 deletions
diff --git a/tests/auto/declarative/graphicswidgets/data/graphicswidgets.qml b/tests/auto/declarative/graphicswidgets/data/graphicswidgets.qml
new file mode 100644
index 0000000..70fafd6
--- /dev/null
+++ b/tests/auto/declarative/graphicswidgets/data/graphicswidgets.qml
@@ -0,0 +1,57 @@
+import Qt 4.6
+
+QGraphicsView {
+ objectName: "GView"
+ size: "800x600"
+
+ QGraphicsScene {
+ objectName: "GScene"
+ sceneRect: "0,0,500x300"
+
+ QGraphicsWidget {
+ layout: QGraphicsLinearLayout {
+ orientation: Qt.Horizontal
+ QGraphicsWidget {
+ layout: QGraphicsLinearLayout {
+ spacing: 10; orientation: Qt.Vertical
+ LayoutItem {
+ QGraphicsLinearLayout.stretchFactor: 1
+ objectName: "left"
+ minimumSize: "100x100"
+ maximumSize: "300x300"
+ preferredSize: "100x100"
+ Rectangle { objectName: "yellowRect"; color: "yellow"; anchors.fill: parent }
+ }
+ LayoutItem {
+ QGraphicsLinearLayout.stretchFactor: 10
+ objectName: "left"
+ minimumSize: "100x100"
+ maximumSize: "300x300"
+ preferredSize: "100x100"
+ Rectangle { objectName: "yellowRect"; color: "blue"; anchors.fill: parent }
+ }
+ }
+ }
+ QGraphicsWidget {
+ layout: QGraphicsLinearLayout {
+ spacing: 10; orientation: Qt.Vertical
+ LayoutItem {
+ objectName: "left"
+ minimumSize: "100x100"
+ maximumSize: "300x300"
+ preferredSize: "100x100"
+ Rectangle { objectName: "yellowRect"; color: "red"; anchors.fill: parent }
+ }
+ LayoutItem {
+ objectName: "left"
+ minimumSize: "100x100"
+ maximumSize: "300x300"
+ preferredSize: "100x100"
+ Rectangle { objectName: "yellowRect"; color: "green"; anchors.fill: parent }
+ }
+ }
+ }
+ }
+ }
+ }
+}