Skip to content

Commit

Permalink
修复 FluProgressBar 放到 FluContentDialog 内对话框刚打开时动画卡顿问题
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyloogn committed Nov 22, 2024
1 parent 9d32e8e commit 4895269
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
12 changes: 7 additions & 5 deletions src/Qt5/imports/FluentUI/Controls/FluProgressBar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,15 @@ ProgressBar{
height: parent.height
radius: d._radius
color: control.color
PropertyAnimation on x {
id:animator_x
SequentialAnimation on x {
id: animator_x
running: control.indeterminate && control.visible
from: -rect_progress.width
to:control.width+rect_progress.width
loops: Animation.Infinite
duration: control.duration
PropertyAnimation {
from: -rect_progress.width
to: control.width + rect_progress.width
duration: control.duration
}
}
}
}
Expand Down
12 changes: 7 additions & 5 deletions src/Qt6/imports/FluentUI/Controls/FluProgressBar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,15 @@ ProgressBar{
height: parent.height
radius: d._radius
color: control.color
PropertyAnimation on x {
id:animator_x
SequentialAnimation on x {
id: animator_x
running: control.indeterminate && control.visible
from: -rect_progress.width
to:control.width+rect_progress.width
loops: Animation.Infinite
duration: control.duration
PropertyAnimation {
from: -rect_progress.width
to: control.width + rect_progress.width
duration: control.duration
}
}
}
}
Expand Down

0 comments on commit 4895269

Please sign in to comment.