mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Qt5->Qt6: Usee key-constants namespace.
part of CURA-8591
This commit is contained in:
parent
6dc6020217
commit
895488a07b
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue