Use signals instead of touching the indicator directly
This commit is contained in:
parent
2ed24cf2d7
commit
e5c4658e6b
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue