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: {
if (imageOverlay.status == Image.Loading) {
runningIndicator.visible = true
rootObj.downloadStarted()
}
if (imageOverlay.status == Image.Ready) {
runningIndicator.visible = false
rootObj.downloadFinished()
// imageOverlay.visible = true
enlargeAnimation.start()
@ -391,7 +391,6 @@ Rectangle {
}
PropertyAnimation {
id: shrinkAnimation
target: imageOverlay