diff options
author | Jaime van Kessel <nallath@gmail.com> | 2022-04-01 14:16:14 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2022-04-01 14:16:14 +0300 |
commit | 0ab8f278b27991b0c87cd2eb673859c7d04bd9ef (patch) | |
tree | 64e984ccd57b9e0952c6a8dfbc2dfd83325cb251 /resources/qml/Cura.qml | |
parent | 1279ba9e82c5de0812d2dc251d17849438c25ccf (diff) |
Add hack to get mouse handling working again
Diffstat (limited to 'resources/qml/Cura.qml')
-rw-r--r-- | resources/qml/Cura.qml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/resources/qml/Cura.qml b/resources/qml/Cura.qml index 2b419a5d76..4bfc2959a2 100644 --- a/resources/qml/Cura.qml +++ b/resources/qml/Cura.qml @@ -48,6 +48,22 @@ UM.MainWindow tooltip.hide(); } + MouseArea + { + // Hack introduced when switching to qt6 + // We used to be able to let the main window's default handlers control this, but something seems to be changed + // for qt6 in the ordering. TODO; We should find out what changed and have a less hacky fix for that. + enabled: parent.visible + anchors.fill: parent + hoverEnabled: true + acceptedButtons: Qt.AllButtons + onPositionChanged: (mouse) => {base.mouseMoved(mouse);} + onPressed: (mouse) => { base.mousePressed(mouse);} + onReleased: (mouse) => { base.mouseReleased(mouse);} + onWheel: (wheel) => {base.wheel(wheel)} + + } + Rectangle { id: greyOutBackground |