mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 06:19:05 +08:00
Also catch middle mouse button in overlay
Just catch all buttons. There's an entry for that in QML. Contributes to issue CURA-6057.
This commit is contained in:
parent
453a785bee
commit
745d9e6116
@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) 2018 Ultimaker B.V.
|
// Copyright (c) 2019 Ultimaker B.V.
|
||||||
// Cura is released under the terms of the LGPLv3 or higher.
|
// Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
import QtQuick 2.7
|
import QtQuick 2.7
|
||||||
@ -57,7 +57,7 @@ UM.MainWindow
|
|||||||
enabled: parent.visible
|
enabled: parent.visible
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
acceptedButtons: Qt.AllButtons
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -719,11 +719,13 @@ UM.MainWindow
|
|||||||
onTriggered:
|
onTriggered:
|
||||||
{
|
{
|
||||||
var path = UM.Resources.getPath(UM.Resources.Preferences, "");
|
var path = UM.Resources.getPath(UM.Resources.Preferences, "");
|
||||||
if(Qt.platform.os == "windows") {
|
if(Qt.platform.os == "windows")
|
||||||
|
{
|
||||||
path = path.replace(/\\/g,"/");
|
path = path.replace(/\\/g,"/");
|
||||||
}
|
}
|
||||||
Qt.openUrlExternally(path);
|
Qt.openUrlExternally(path);
|
||||||
if(Qt.platform.os == "linux") {
|
if(Qt.platform.os == "linux")
|
||||||
|
{
|
||||||
Qt.openUrlExternally(UM.Resources.getPath(UM.Resources.Resources, ""));
|
Qt.openUrlExternally(UM.Resources.getPath(UM.Resources.Resources, ""));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user