aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2024-03-19 11:21:16 +0800
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-03-20 14:06:17 +0000
commitf0e432b255b592c98c090a96cbf0b7c1339116b8 (patch)
treee524eccdd8952eb4308c50a4ea309db285097a15
parent65fa7ff2c98c433843ee25b5a80dc79427aca9f8 (diff)
Dial: fix handle position in the Fusion style
The handle position has slightly changed, possibly as a result of the recent improvements in e.g. d93ca833f65893653071d7ba33fd129fe3db53dc. Account for that. Fixes: QTBUG-123394 Change-Id: I30155a9aac286e02b5f91e09f48392b3156c18dc Reviewed-by: Matthias Rauter <matthias.rauter@qt.io> (cherry picked from commit 1394ae663b6a4a6b07a5017393181c0fad236270) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 27dfeb3c988a016e1dda760e995271f41b5af1c4)
-rw-r--r--src/quickcontrols/fusion/Dial.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quickcontrols/fusion/Dial.qml b/src/quickcontrols/fusion/Dial.qml
index 5d16874f49..6efd2581c3 100644
--- a/src/quickcontrols/fusion/Dial.qml
+++ b/src/quickcontrols/fusion/Dial.qml
@@ -28,7 +28,7 @@ T.Dial {
height: control.height / 7
transform: [
Translate {
- y: -Math.min(control.background.width, control.background.height) * 0.42
+ y: -Math.min(control.background.width, control.background.height) * 0.35
+ (control.handle ? control.handle.height / 2 : 0)
},
Rotation {