mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-03-14 07:59:41 +08:00
update
This commit is contained in:
parent
7716ab02a6
commit
36da8cd785
@ -13,6 +13,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 = 888
|
||||||
|
}
|
||||||
|
}
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
implicitWidth: 150
|
implicitWidth: 150
|
||||||
implicitHeight: control.strokeWidth
|
implicitHeight: control.strokeWidth
|
||||||
@ -34,6 +41,7 @@ ProgressBar{
|
|||||||
radius: d._radius
|
radius: d._radius
|
||||||
color: control.color
|
color: control.color
|
||||||
PropertyAnimation on x {
|
PropertyAnimation on x {
|
||||||
|
id:animator_x
|
||||||
running: control.indeterminate && control.visible
|
running: control.indeterminate && control.visible
|
||||||
from: -rect_progress.width
|
from: -rect_progress.width
|
||||||
to:control.width+rect_progress.width
|
to:control.width+rect_progress.width
|
||||||
@ -57,4 +65,3 @@ ProgressBar{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,6 +13,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 = 888
|
||||||
|
}
|
||||||
|
}
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
implicitWidth: 150
|
implicitWidth: 150
|
||||||
implicitHeight: control.strokeWidth
|
implicitHeight: control.strokeWidth
|
||||||
@ -34,6 +41,7 @@ ProgressBar{
|
|||||||
radius: d._radius
|
radius: d._radius
|
||||||
color: control.color
|
color: control.color
|
||||||
PropertyAnimation on x {
|
PropertyAnimation on x {
|
||||||
|
id:animator_x
|
||||||
running: control.indeterminate && control.visible
|
running: control.indeterminate && control.visible
|
||||||
from: -rect_progress.width
|
from: -rect_progress.width
|
||||||
to:control.width+rect_progress.width
|
to:control.width+rect_progress.width
|
||||||
@ -57,4 +65,3 @@ ProgressBar{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user