aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcontrols/universal/Dial.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/quickcontrols/universal/Dial.qml')
-rw-r--r--src/quickcontrols/universal/Dial.qml7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/quickcontrols/universal/Dial.qml b/src/quickcontrols/universal/Dial.qml
index 6f86b00722..df52ea1aa5 100644
--- a/src/quickcontrols/universal/Dial.qml
+++ b/src/quickcontrols/universal/Dial.qml
@@ -41,12 +41,13 @@ T.Dial {
transform: [
Translate {
- y: -control.background.height * 0.4 + control.handle.height / 2
+ y: -control.background.height * 0.4
+ + (control.handle ? control.handle.height / 2 : 0)
},
Rotation {
angle: control.angle
- origin.x: control.handle.width / 2
- origin.y: control.handle.height / 2
+ origin.x: control.handle ? control.handle.width / 2 : 0
+ origin.y: control.handle ? control.handle.height / 2 : 0
}
]
}