diff options
author | Michael Brasser <michael.brasser@live.com> | 2013-01-23 22:02:53 -0600 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-01-24 12:32:41 +0100 |
commit | c5fb0a9d8a7eedaed0c4ecfe354219a9d252062f (patch) | |
tree | b44f75a41a20f8c46b89f5b78868003b90b2d155 /tests/auto/quick/qquickimage/data | |
parent | 57f593b96f2b1af21e7d84099d169d51f698672f (diff) |
Disconnect from previous loading image when loading a new image.
Change-Id: If2fa95d9715a55d3f07ecf5f232e4f4b9a44a6fb
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Diffstat (limited to 'tests/auto/quick/qquickimage/data')
-rw-r--r-- | tests/auto/quick/qquickimage/data/correctStatus.qml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickimage/data/correctStatus.qml b/tests/auto/quick/qquickimage/data/correctStatus.qml new file mode 100644 index 0000000000..2326078657 --- /dev/null +++ b/tests/auto/quick/qquickimage/data/correctStatus.qml @@ -0,0 +1,26 @@ +import QtQuick 2.0 + +Item { + property alias status: image1.status + + Image { + id: image1 + asynchronous: true + source: "image://test/first-image.png" + } + + Image { + id: image2 + asynchronous: true + source: "image://test/first-image.png" + } + + Timer { + interval: 50 + running: true + repeat: false + onTriggered: { + image1.source = "image://test/second-image.png" + } + } +} |