Compare commits
3 Commits
99f6b16aa1
...
6b4ca8e6fb
Author | SHA1 | Date |
---|---|---|
|
6b4ca8e6fb | |
|
2e5c09bfff | |
|
e226599396 |
|
@ -14,6 +14,13 @@ 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
|
||||||
|
@ -38,11 +45,6 @@ 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,6 +15,13 @@ 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
|
||||||
|
@ -39,11 +46,6 @@ 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