diff options
author | Doris Verria <doris.verria@qt.io> | 2022-08-24 20:32:40 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-08-30 05:08:03 +0000 |
commit | 8a00715011ea12443386e8d04bfa180219c8a5a1 (patch) | |
tree | 8f2292effedba4f8b952bd8e6e30cee1d1352ed1 | |
parent | 0ebb9c1465294831de4b78339d8bfa1e2af1bbf8 (diff) |
iOS Style: Draw progress for indeterminate progressbar
Ammends commit 4a6e7cec9978d6fc95a90895309531a7955ff944
which made the progress visible only when value was bigger
than 0, but didn't take into account the indeterminate status.
In the indeterminate status, the value is 0 but we still need to
draw the progress.
Task-number: QTBUG-105937
Change-Id: Idd313716a65fd5004524de8ac8ce5ecd59d3e599
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
(cherry picked from commit f9205f39188ba769e597d87e15b0233bcc9776da)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/quickcontrols2/ios/ProgressBar.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quickcontrols2/ios/ProgressBar.qml b/src/quickcontrols2/ios/ProgressBar.qml index 439ba5a309..6ff3b8fb25 100644 --- a/src/quickcontrols2/ios/ProgressBar.qml +++ b/src/quickcontrols2/ios/ProgressBar.qml @@ -24,7 +24,7 @@ T.ProgressBar { readonly property NinePatchImage progress: NinePatchImage { parent: control.contentItem - visible: control.value + visible: control.indeterminate || control.value y: (parent.height - height) / 2 width: control.indeterminate ? control.width * 0.4 : control.position * parent.width |