From 489526988d6734ff4368279318d1ffb37e150b8f Mon Sep 17 00:00:00 2001 From: lucky9loogn Date: Fri, 22 Nov 2024 15:40:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20FluProgressBar=20=E6=94=BE?= =?UTF-8?q?=E5=88=B0=20FluContentDialog=20=E5=86=85=E5=AF=B9=E8=AF=9D?= =?UTF-8?q?=E6=A1=86=E5=88=9A=E6=89=93=E5=BC=80=E6=97=B6=E5=8A=A8=E7=94=BB?= =?UTF-8?q?=E5=8D=A1=E9=A1=BF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Qt5/imports/FluentUI/Controls/FluProgressBar.qml | 12 +++++++----- src/Qt6/imports/FluentUI/Controls/FluProgressBar.qml | 12 +++++++----- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/src/Qt5/imports/FluentUI/Controls/FluProgressBar.qml b/src/Qt5/imports/FluentUI/Controls/FluProgressBar.qml index c89ba6fb..e75b47ba 100644 --- a/src/Qt5/imports/FluentUI/Controls/FluProgressBar.qml +++ b/src/Qt5/imports/FluentUI/Controls/FluProgressBar.qml @@ -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 + } } } } diff --git a/src/Qt6/imports/FluentUI/Controls/FluProgressBar.qml b/src/Qt6/imports/FluentUI/Controls/FluProgressBar.qml index bca37cea..9c2c6123 100644 --- a/src/Qt6/imports/FluentUI/Controls/FluProgressBar.qml +++ b/src/Qt6/imports/FluentUI/Controls/FluProgressBar.qml @@ -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 + } } } }