mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-27 05:38:37 +08:00
update
This commit is contained in:
parent
36da8cd785
commit
5240f826c5
@ -19,6 +19,13 @@ ProgressBar{
|
|||||||
border.color: control.backgroundColor
|
border.color: control.backgroundColor
|
||||||
border.width: control.strokeWidth
|
border.width: control.strokeWidth
|
||||||
}
|
}
|
||||||
|
onIndeterminateChanged:{
|
||||||
|
if(!indeterminate){
|
||||||
|
animator_r.duration = 0
|
||||||
|
layout_item.rotation = 0
|
||||||
|
animator_r.duration = 888
|
||||||
|
}
|
||||||
|
}
|
||||||
QtObject{
|
QtObject{
|
||||||
id:d
|
id:d
|
||||||
property real _radius: control.width/2-control.strokeWidth/2
|
property real _radius: control.width/2-control.strokeWidth/2
|
||||||
@ -34,7 +41,9 @@ ProgressBar{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
contentItem: Item {
|
contentItem: Item {
|
||||||
|
id:layout_item
|
||||||
RotationAnimation on rotation {
|
RotationAnimation on rotation {
|
||||||
|
id:animator_r
|
||||||
running: control.indeterminate && control.visible
|
running: control.indeterminate && control.visible
|
||||||
from: 0
|
from: 0
|
||||||
to:360
|
to:360
|
||||||
|
@ -19,6 +19,13 @@ ProgressBar{
|
|||||||
border.color: control.backgroundColor
|
border.color: control.backgroundColor
|
||||||
border.width: control.strokeWidth
|
border.width: control.strokeWidth
|
||||||
}
|
}
|
||||||
|
onIndeterminateChanged:{
|
||||||
|
if(!indeterminate){
|
||||||
|
animator_r.duration = 0
|
||||||
|
layout_item.rotation = 0
|
||||||
|
animator_r.duration = 888
|
||||||
|
}
|
||||||
|
}
|
||||||
QtObject{
|
QtObject{
|
||||||
id:d
|
id:d
|
||||||
property real _radius: control.width/2-control.strokeWidth/2
|
property real _radius: control.width/2-control.strokeWidth/2
|
||||||
@ -34,7 +41,9 @@ ProgressBar{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
contentItem: Item {
|
contentItem: Item {
|
||||||
|
id:layout_item
|
||||||
RotationAnimation on rotation {
|
RotationAnimation on rotation {
|
||||||
|
id:animator_r
|
||||||
running: control.indeterminate && control.visible
|
running: control.indeterminate && control.visible
|
||||||
from: 0
|
from: 0
|
||||||
to:360
|
to:360
|
||||||
@ -71,4 +80,3 @@ ProgressBar{
|
|||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user