aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/fusion/Dial.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/controls/fusion/Dial.qml')
-rw-r--r--src/imports/controls/fusion/Dial.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/imports/controls/fusion/Dial.qml b/src/imports/controls/fusion/Dial.qml
index 423087c9..a1337242 100644
--- a/src/imports/controls/fusion/Dial.qml
+++ b/src/imports/controls/fusion/Dial.qml
@@ -57,19 +57,19 @@ T.Dial {
}
handle: KnobImpl {
- 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
width: control.width / 7
height: control.height / 7
palette: control.palette
transform: [
Translate {
- y: -Math.min(background.width, background.height) * 0.42 + handle.height
+ y: -Math.min(control.background.width, control.background.height) * 0.42 + control.handle.height
},
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
}
]
}