为<工件标注>和<呼吸质量标注>模块增加了快捷键设置

This commit is contained in:
marques
2025-08-26 17:26:04 +08:00
parent 8f0f3f0365
commit d1108c724a
3 changed files with 20 additions and 0 deletions

View File

@ -317,6 +317,10 @@ class MainWindow_artifact_label(QMainWindow):
self.ui.tableWidget_type_5.cellDoubleClicked.connect(self.__slot_tableWidget_on_cell_double_clicked__)
self.ui.pushButton_input_setting.clicked.connect(self.setting.show)
self.ui.pushButton_prev_move.setShortcut(QCoreApplication.translate("MainWindow", Params.ARTIFACT_LABEL_BTN_PREV_SHORTCUT_KEY))
self.ui.pushButton_pause.setShortcut(QCoreApplication.translate("MainWindow", Params.ARTIFACT_LABEL_BTN_PAUSE_SHORTCUT_KEY))
self.ui.pushButton_next_move.setShortcut(QCoreApplication.translate("MainWindow", Params.ARTIFACT_LABEL_BTN_NEXT_SHORTCUT_KEY))
@overrides
def closeEvent(self, event):
reply = QMessageBox.question(self, '确认', '确认退出吗?', QMessageBox.Yes | QMessageBox.No, QMessageBox.No)