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: {
 | 
			
		||||
 | 
			
		||||
            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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue