aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcontrols/macos
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2025-10-24 13:06:24 +0200
committerRichard Moe Gustavsen <richard.gustavsen@qt.io>2025-10-24 19:00:08 +0200
commit603d7f0061c38e6f43939611fe2a471c10a2382c (patch)
treef3b80146c624ef5ae99970ced0cd4d6ea5bbbfab /src/quickcontrols/macos
parent516e764ffaa1d66a781c4ed576079b34ce71434f (diff)
ProgressBar: ensure the groove resepect the width of the control
As it stood, the progress bar groove would not be resized according to the size of the control, since it lacked at width binding. This patch will make sure to resize the groove correctly. It also fixes a binding loop warning related to the use of Loaders in combination with childrenRect in the same go. Fixes: QTBUG-141182 Pick-to: 6.10 6.9 6.8 6.5 Change-Id: I1aa87db339b04686ca521b486e4c7a05683a7679 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/quickcontrols/macos')
-rw-r--r--src/quickcontrols/macos/ProgressBar.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/quickcontrols/macos/ProgressBar.qml b/src/quickcontrols/macos/ProgressBar.qml
index 8c808d2b7a..7b238b4fd4 100644
--- a/src/quickcontrols/macos/ProgressBar.qml
+++ b/src/quickcontrols/macos/ProgressBar.qml
@@ -19,13 +19,13 @@ T.ProgressBar {
background: Item {
implicitWidth: 100
- implicitHeight: childrenRect.height
+ implicitHeight: NativeStyle.StyleConstants.runningWithLiquidGlass ? 8 : 12
readonly property bool __ignoreNotCustomizable: true
Loader {
active: NativeStyle.StyleConstants.runningWithLiquidGlass
width: parent.width
- height: 8
+ height: root.background.implicitHeight
sourceComponent: Rectangle {
y: (parent.height - height) / 2
radius: height / 2
@@ -37,6 +37,8 @@ T.ProgressBar {
Loader {
active: !NativeStyle.StyleConstants.runningWithLiquidGlass
+ width: parent.width
+ height: root.background.implicitHeight
sourceComponent: NativeStyle.ProgressBar {
control: root
useNinePatchImage: false