mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 13:03:59 -06:00
Add hack to get mouse handling working again
This commit is contained in:
parent
1279ba9e82
commit
0ab8f278b2
1 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue