aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/material/Dial.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/controls/material/Dial.qml')
-rw-r--r--src/imports/controls/material/Dial.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/imports/controls/material/Dial.qml b/src/imports/controls/material/Dial.qml
index 1148dd25..1f80a7fe 100644
--- a/src/imports/controls/material/Dial.qml
+++ b/src/imports/controls/material/Dial.qml
@@ -62,16 +62,16 @@ T.Dial {
}
handle: SliderHandle {
- x: background.x + background.width / 2 - handle.width / 2
- y: background.y + background.height / 2 - handle.height / 2
+ x: control.background.x + control.background.width / 2 - control.handle.width / 2
+ y: control.background.y + control.background.height / 2 - control.handle.height / 2
transform: [
Translate {
- y: -background.height * 0.4 + handle.height / 2
+ y: -control.background.height * 0.4 + control.handle.height / 2
},
Rotation {
angle: control.angle
- origin.x: handle.width / 2
- origin.y: handle.height / 2
+ origin.x: control.handle.width / 2
+ origin.y: control.handle.height / 2
}
]
implicitWidth: 10