Qt5->Qt6: Usee key-constants namespace.

part of CURA-8591
This commit is contained in:
Remco Burema 2021-12-29 09:10:19 +01:00
parent 6dc6020217
commit 895488a07b
No known key found for this signature in database
GPG Key ID: 215C49431D43F98C
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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()
} }