summaryrefslogtreecommitdiffstats
path: root/qml
diff options
context:
space:
mode:
authorNiels Weber <niels.weber@digia.com>2014-09-25 15:52:42 +0200
committerNiels Weber <niels.weber@digia.com>2014-09-25 16:44:14 +0200
commit1e708e42c7a8df6dad83a438558cd0e120a0ba34 (patch)
tree910c1032f8fe07d3bbd7fb77f326a9879d503dc3 /qml
parentf0a47db9e7f2fc7d60d6dc02f92a4a403c673cf2 (diff)
Load floorplans asynchronously
To stop it from stuttering. Change-Id: I459b447d3a0e87a5c8be0789ba3cf785ed7deb2d Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Diffstat (limited to 'qml')
-rw-r--r--qml/components/Floorplan.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/qml/components/Floorplan.qml b/qml/components/Floorplan.qml
index 04af00e..0ca86f7 100644
--- a/qml/components/Floorplan.qml
+++ b/qml/components/Floorplan.qml
@@ -83,6 +83,7 @@ Rectangle {
Image {
id: image
source: imageSource
+ asynchronous: true
Layout.alignment: Qt.AlignHCenter
sourceSize.height: floorplan.isPortrait ? columFloors.height / currentModel.count - Theme.margins.twenty : 0
sourceSize.width: !floorplan.isPortrait ? columFloors.width / currentModel.count - Theme.margins.twenty : 0