6 property real timeoutSeconds: 0
7 property string progressLabel: ""
8 property bool running: false
10 // Do not set these properties
11 property real progress: 0
15 property double _lastUpdateTime: 0
19 interval: timeoutSeconds * 1000
26 root.progressLabel = ""
31 SequentialAnimation on progress {
40 duration: timeoutSeconds * 1000
45 const currentTime = Date.now() * 0.001
46 if (currentTime - _lastUpdateTime < 0.1) {
51 var currentCount = (progress * timeoutSeconds)
52 progressLabel = (timeoutSeconds - currentCount).toFixed(1)
57 _lastUpdateTime = currentTime
63 timeoutTimer.restart()
64 progressAnimation.restart()
71 progressAnimation.stop()