diff options
author | Joona Petrell <joona.t.petrell@nokia.com> | 2010-08-18 05:12:31 (GMT) |
---|---|---|
committer | Joona Petrell <joona.t.petrell@nokia.com> | 2010-08-18 05:16:37 (GMT) |
commit | 401ff4b290fcff0ef599af5986bc0b7816380575 (patch) | |
tree | 29b8734e4af6aa7c1a102965ec491ff860104ba8 /examples/declarative/threading | |
parent | b16c16134bac4dc7260fb74ca708a896886cddec (diff) | |
download | Qt-401ff4b290fcff0ef599af5986bc0b7816380575.zip Qt-401ff4b290fcff0ef599af5986bc0b7816380575.tar.gz Qt-401ff4b290fcff0ef599af5986bc0b7816380575.tar.bz2 |
Add visible background element to declarative examples that didn't have any
Invisible areas cause redraw artifacts with OpenVg paint engine.
Task-number:
Reviewed-by: Martin Jones
Diffstat (limited to 'examples/declarative/threading')
-rw-r--r-- | examples/declarative/threading/threadedlistmodel/timedisplay.qml | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/examples/declarative/threading/threadedlistmodel/timedisplay.qml b/examples/declarative/threading/threadedlistmodel/timedisplay.qml index 997f7a0..9fc3eb3 100644 --- a/examples/declarative/threading/threadedlistmodel/timedisplay.qml +++ b/examples/declarative/threading/threadedlistmodel/timedisplay.qml @@ -41,31 +41,35 @@ // ![0] import Qt 4.7 -ListView { +Rectangle { + color: "white" width: 200 height: 300 - model: listModel - delegate: Component { - Text { text: time } - } + ListView { - ListModel { id: listModel } + model: listModel + delegate: Component { + Text { text: time } + } - WorkerScript { - id: worker - source: "dataloader.js" - } + ListModel { id: listModel } + + WorkerScript { + id: worker + source: "dataloader.js" + } - Timer { - id: timer - interval: 2000; repeat: true - running: true - triggeredOnStart: true + Timer { + id: timer + interval: 2000; repeat: true + running: true + triggeredOnStart: true - onTriggered: { - var msg = {'action': 'appendCurrentTime', 'model': listModel}; - worker.sendMessage(msg); + onTriggered: { + var msg = {'action': 'appendCurrentTime', 'model': listModel}; + worker.sendMessage(msg); + } } } } |