first try to motion to PyQt6

This commit is contained in:
Dominik Demuth
2024-10-10 19:22:57 +02:00
parent 24f20f8850
commit 837ea2504c
134 changed files with 473 additions and 11464 deletions

View File

@@ -33,9 +33,9 @@ class PointSelectWidget(QtWidgets.QWidget, Ui_Form):
self.peaktable.itemDoubleClicked.connect(self.editing_started)
def keyPressEvent(self, e):
if e.key() == QtCore.Qt.Key_Delete:
if e.key() == QtCore.Qt.Key.Key_Delete:
self.remove_points()
elif e.key() == QtCore.Qt.Key_F2:
elif e.key() == QtCore.Qt.Key.Key_F2:
self.editing_started()
else:
super().keyPressEvent(e)