diff options
author | Martin Jones <martin.jones@nokia.com> | 2011-01-06 06:57:06 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2011-01-06 06:57:06 (GMT) |
commit | 05b9137fe1974aa123ce6d9c16b733e1f77d8269 (patch) | |
tree | 6965ebdba00a655ee879bc969986cd24753c6823 /tests/auto/declarative/qdeclarativepathview/data/undefinedpath.qml | |
parent | 1ba3e41f09ea719249286fede5d3fe96621ccb61 (diff) | |
download | Qt-05b9137fe1974aa123ce6d9c16b733e1f77d8269.zip Qt-05b9137fe1974aa123ce6d9c16b733e1f77d8269.tar.gz Qt-05b9137fe1974aa123ce6d9c16b733e1f77d8269.tar.bz2 |
PathView crashed when the path is provided with undefined values.
Task-number: QTBUG-16356
Reviewed-by: Bea Lam
Diffstat (limited to 'tests/auto/declarative/qdeclarativepathview/data/undefinedpath.qml')
-rw-r--r-- | tests/auto/declarative/qdeclarativepathview/data/undefinedpath.qml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativepathview/data/undefinedpath.qml b/tests/auto/declarative/qdeclarativepathview/data/undefinedpath.qml new file mode 100644 index 0000000..5a647cb --- /dev/null +++ b/tests/auto/declarative/qdeclarativepathview/data/undefinedpath.qml @@ -0,0 +1,17 @@ +import QtQuick 1.0 + +PathView { + id: pathView + width: 240; height: 200 + path: Path { + startX: pathView.undef/2.0; startY: 0 + PathLine { x: pathView.undef/2.0; y: 0 } + } + + delegate: Text { text: value } + model: ListModel { + ListElement { value: "one" } + ListElement { value: "two" } + ListElement { value: "three" } + } +} |