Compare commits
2 Commits
6b4ca8e6fb
...
99f6b16aa1
Author | SHA1 | Date |
---|---|---|
|
99f6b16aa1 | |
|
65b7737454 |
|
@ -14,13 +14,6 @@ ProgressBar{
|
||||||
id:d
|
id:d
|
||||||
property real _radius: strokeWidth/2
|
property real _radius: strokeWidth/2
|
||||||
}
|
}
|
||||||
onIndeterminateChanged:{
|
|
||||||
if(!indeterminate){
|
|
||||||
animator_x.duration = 0
|
|
||||||
rect_progress.x = 0
|
|
||||||
animator_x.duration = control.duration
|
|
||||||
}
|
|
||||||
}
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
implicitWidth: 150
|
implicitWidth: 150
|
||||||
implicitHeight: control.strokeWidth
|
implicitHeight: control.strokeWidth
|
||||||
|
@ -45,6 +38,11 @@ ProgressBar{
|
||||||
id: animator_x
|
id: animator_x
|
||||||
running: control.indeterminate && control.visible
|
running: control.indeterminate && control.visible
|
||||||
loops: Animation.Infinite
|
loops: Animation.Infinite
|
||||||
|
onRunningChanged: {
|
||||||
|
if(!running){
|
||||||
|
rect_progress.x = 0
|
||||||
|
}
|
||||||
|
}
|
||||||
PropertyAnimation {
|
PropertyAnimation {
|
||||||
from: -rect_progress.width
|
from: -rect_progress.width
|
||||||
to: control.width + rect_progress.width
|
to: control.width + rect_progress.width
|
||||||
|
|
|
@ -15,13 +15,6 @@ ProgressBar{
|
||||||
id:d
|
id:d
|
||||||
property real _radius: strokeWidth/2
|
property real _radius: strokeWidth/2
|
||||||
}
|
}
|
||||||
onIndeterminateChanged:{
|
|
||||||
if(!indeterminate){
|
|
||||||
animator_x.duration = 0
|
|
||||||
rect_progress.x = 0
|
|
||||||
animator_x.duration = control.duration
|
|
||||||
}
|
|
||||||
}
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
implicitWidth: 150
|
implicitWidth: 150
|
||||||
implicitHeight: control.strokeWidth
|
implicitHeight: control.strokeWidth
|
||||||
|
@ -46,6 +39,11 @@ ProgressBar{
|
||||||
id: animator_x
|
id: animator_x
|
||||||
running: control.indeterminate && control.visible
|
running: control.indeterminate && control.visible
|
||||||
loops: Animation.Infinite
|
loops: Animation.Infinite
|
||||||
|
onRunningChanged: {
|
||||||
|
if(!running){
|
||||||
|
rect_progress.x = 0
|
||||||
|
}
|
||||||
|
}
|
||||||
PropertyAnimation {
|
PropertyAnimation {
|
||||||
from: -rect_progress.width
|
from: -rect_progress.width
|
||||||
to: control.width + rect_progress.width
|
to: control.width + rect_progress.width
|
||||||
|
|
Loading…
Reference in New Issue