diff options
Diffstat (limited to 'tests/auto/qtquick2/qquickvisualdatamodel/data/create.qml')
-rw-r--r-- | tests/auto/qtquick2/qquickvisualdatamodel/data/create.qml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/auto/qtquick2/qquickvisualdatamodel/data/create.qml b/tests/auto/qtquick2/qquickvisualdatamodel/data/create.qml new file mode 100644 index 0000000000..3475a0dace --- /dev/null +++ b/tests/auto/qtquick2/qquickvisualdatamodel/data/create.qml @@ -0,0 +1,25 @@ +import QtQuick 2.0 + +ListView { + width: 200 + height: 200 + + model: VisualDataModel { + id: visualModel + + persistedItems.includeByDefault: true + + model: myModel + delegate: Item { + id: delegate + objectName: "delegate" + width: 200 + height: 20 + + property bool destroyed: false + + + Component.onDestruction: destroyed = true + } + } +} |