mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08:00
Qt5->Qt6: Usee key-constants namespace.
part of CURA-8591
This commit is contained in:
parent
6dc6020217
commit
895488a07b
@ -31,7 +31,7 @@ import numpy
|
|||||||
class SupportEraser(Tool):
|
class SupportEraser(Tool):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self._shortcut_key = Qt.Key_E
|
self._shortcut_key = Qt.Key.Key_E
|
||||||
self._controller = self.getController()
|
self._controller = self.getController()
|
||||||
|
|
||||||
self._selection_pass = None
|
self._selection_pass = None
|
||||||
|
@ -152,7 +152,7 @@ UM.MainWindow
|
|||||||
//DeleteSelection on the keypress backspace event
|
//DeleteSelection on the keypress backspace event
|
||||||
Keys.onPressed:
|
Keys.onPressed:
|
||||||
{
|
{
|
||||||
if (event.key == Qt.Key_Backspace)
|
if (event.key == Qt.Key.Key_Backspace)
|
||||||
{
|
{
|
||||||
Cura.Actions.deleteSelection.trigger()
|
Cura.Actions.deleteSelection.trigger()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user