Use signals instead of touching the indicator directly

This commit is contained in:
Luca Beltrame 2015-03-01 23:52:37 +01:00
parent 2ed24cf2d7
commit e5c4658e6b

View file

@ -355,11 +355,11 @@ Rectangle {
onStatusChanged: { onStatusChanged: {
if (imageOverlay.status == Image.Loading) { if (imageOverlay.status == Image.Loading) {
runningIndicator.visible = true rootObj.downloadStarted()
} }
if (imageOverlay.status == Image.Ready) { if (imageOverlay.status == Image.Ready) {
runningIndicator.visible = false rootObj.downloadFinished()
// imageOverlay.visible = true // imageOverlay.visible = true
enlargeAnimation.start() enlargeAnimation.start()
@ -391,7 +391,6 @@ Rectangle {
} }
PropertyAnimation { PropertyAnimation {
id: shrinkAnimation id: shrinkAnimation
target: imageOverlay target: imageOverlay