Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativelistmodel / data / model.qml
1 import QtQuick 1.0
2
3 Item {
4     id: item
5     property variant model
6     property bool done: false
7     property variant result
8
9     function evalExpressionViaWorker(commands) {
10         done = false
11         worker.sendMessage({'commands': commands, 'model': model})
12     }
13
14     WorkerScript {
15         id: worker
16         source: "script.js"
17         onMessage: {
18             item.result = messageObject.result
19             item.done = true
20         }
21     }
22 }