File tree Expand file tree Collapse file tree 2 files changed +10
-14
lines changed
Qt5/imports/FluentUI/Controls
Qt6/imports/FluentUI/Controls Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,6 @@ ProgressBar{
14
14
id: d
15
15
property real _radius: strokeWidth/ 2
16
16
}
17
- onIndeterminateChanged: {
18
- if (! indeterminate){
19
- animator_x .duration = 0
20
- rect_progress .x = 0
21
- animator_x .duration = control .duration
22
- }
23
- }
24
17
background: Rectangle {
25
18
implicitWidth: 150
26
19
implicitHeight: control .strokeWidth
@@ -45,6 +38,11 @@ ProgressBar{
45
38
id: animator_x
46
39
running: control .indeterminate && control .visible
47
40
loops: Animation .Infinite
41
+ onRunningChanged: {
42
+ if (! running){
43
+ rect_progress .x = 0
44
+ }
45
+ }
48
46
PropertyAnimation {
49
47
from: - rect_progress .width
50
48
to: control .width + rect_progress .width
Original file line number Diff line number Diff line change @@ -15,13 +15,6 @@ ProgressBar{
15
15
id: d
16
16
property real _radius: strokeWidth/ 2
17
17
}
18
- onIndeterminateChanged: {
19
- if (! indeterminate){
20
- animator_x .duration = 0
21
- rect_progress .x = 0
22
- animator_x .duration = control .duration
23
- }
24
- }
25
18
background: Rectangle {
26
19
implicitWidth: 150
27
20
implicitHeight: control .strokeWidth
@@ -46,6 +39,11 @@ ProgressBar{
46
39
id: animator_x
47
40
running: control .indeterminate && control .visible
48
41
loops: Animation .Infinite
42
+ onRunningChanged: {
43
+ if (! running){
44
+ rect_progress .x = 0
45
+ }
46
+ }
49
47
PropertyAnimation {
50
48
from: - rect_progress .width
51
49
to: control .width + rect_progress .width
You can’t perform that action at this time.
0 commit comments