diff options
Diffstat (limited to 'src/quickcontrols/material/Dial.qml')
-rw-r--r-- | src/quickcontrols/material/Dial.qml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/quickcontrols/material/Dial.qml b/src/quickcontrols/material/Dial.qml index a44938fe20..465c1f3631 100644 --- a/src/quickcontrols/material/Dial.qml +++ b/src/quickcontrols/material/Dial.qml @@ -33,12 +33,13 @@ T.Dial { y: control.background.y + control.background.height / 2 - height / 2 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 } ] implicitWidth: 10 |