diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-04-14 00:16:41 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-04-14 00:16:41 (GMT) |
commit | 3469fe05e4b04567598202fecc16c1decfb3ab63 (patch) | |
tree | 3e7c3237d935a9942de937fafd186be17db7e547 /tests/auto/declarative/qdeclarativepositioners/data | |
parent | 532c21c7fc0a4075fe691507ec17b3dea7e3c043 (diff) | |
download | Qt-3469fe05e4b04567598202fecc16c1decfb3ab63.zip Qt-3469fe05e4b04567598202fecc16c1decfb3ab63.tar.gz Qt-3469fe05e4b04567598202fecc16c1decfb3ab63.tar.bz2 |
Don't crash when columns == 0
Task-number: QTBUG-9805
Diffstat (limited to 'tests/auto/declarative/qdeclarativepositioners/data')
-rw-r--r-- | tests/auto/declarative/qdeclarativepositioners/data/gridzerocolumns.qml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativepositioners/data/gridzerocolumns.qml b/tests/auto/declarative/qdeclarativepositioners/data/gridzerocolumns.qml new file mode 100644 index 0000000..052d96b --- /dev/null +++ b/tests/auto/declarative/qdeclarativepositioners/data/gridzerocolumns.qml @@ -0,0 +1,40 @@ +import Qt 4.6 + +Item { + width: 640 + height: 480 + Grid { + objectName: "grid" + columns: 0 + Rectangle { + objectName: "one" + color: "red" + width: 50 + height: 50 + } + Rectangle { + objectName: "two" + color: "green" + width: 20 + height: 50 + } + Rectangle { + objectName: "three" + color: "blue" + width: 50 + height: 20 + } + Rectangle { + objectName: "four" + color: "cyan" + width: 50 + height: 50 + } + Rectangle { + objectName: "five" + color: "magenta" + width: 10 + height: 10 + } + } +} |