diff options
Diffstat (limited to 'tests/auto/qml/qquicklistmodel/data/workerremovelist.qml')
-rw-r--r-- | tests/auto/qml/qquicklistmodel/data/workerremovelist.qml | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/tests/auto/qml/qquicklistmodel/data/workerremovelist.qml b/tests/auto/qml/qquicklistmodel/data/workerremovelist.qml deleted file mode 100644 index bdb5e024d8..0000000000 --- a/tests/auto/qml/qquicklistmodel/data/workerremovelist.qml +++ /dev/null @@ -1,33 +0,0 @@ -import QtQuick 2.0 - -Item { - id: item - property variant model - property bool done: false - - WorkerScript { - id: worker - source: "workerremovelist.js" - onMessage: { - item.done = true - } - } - - function addList() { - model.append({ 'data': [ { 'subData': 1 } ] }); - - var element = model.get(0); - } - - function removeListViaWorker() { - done = false - var msg = { 'action': 'removeList', 'model': model } - worker.sendMessage(msg); - } - - function doSync() { - done = false - var msg = { 'action': 'dosync', 'model': model } - worker.sendMessage(msg); - } -} |