From 35305ac7d03f8a12b8761bd1a1e4ddcd9f94300a Mon Sep 17 00:00:00 2001 From: marques <20172333133@m.scnu.edu.cn> Date: Wed, 27 Aug 2025 15:25:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA<=E5=91=BC=E5=90=B8=E8=B4=A8=E9=87=8F?= =?UTF-8?q?=E6=A0=87=E6=B3=A8>=E6=A8=A1=E5=9D=97=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E5=B8=83=E5=B1=80=EF=BC=8C=E5=A2=9E=E5=8A=A0=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E4=B8=8B=E4=B8=80=E6=AE=B5=E5=8A=9F=E8=83=BD=E7=9A=84=E5=A4=8D?= =?UTF-8?q?=E9=80=89=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- func/Module_resp_quality_label.py | 3 + .../MainWindow_resp_quality_label.py | 49 ++++++----- .../MainWindow_resp_quality_label.ui | 82 +++++++++++-------- 3 files changed, 78 insertions(+), 56 deletions(-) diff --git a/func/Module_resp_quality_label.py b/func/Module_resp_quality_label.py index cfd43fb..881c85b 100644 --- a/func/Module_resp_quality_label.py +++ b/func/Module_resp_quality_label.py @@ -1032,6 +1032,9 @@ class MainWindow_resp_quality_label(QMainWindow): return else: PublicFunc.text_output(self.ui, result.info, Constants.TIPS_TYPE_INFO) + if self.sender() == self.ui.pushButton_valid or self.sender() == self.ui.pushButton_invalid: + if self.ui.checkBox_auto_next: + self.ui.pushButton_next.click() def __slot_lineEdit_filter__(self, filter_text): sender = self.sender() diff --git a/ui/MainWindow/MainWindow_resp_quality_label.py b/ui/MainWindow/MainWindow_resp_quality_label.py index 429a270..5c5acc2 100644 --- a/ui/MainWindow/MainWindow_resp_quality_label.py +++ b/ui/MainWindow/MainWindow_resp_quality_label.py @@ -3,7 +3,7 @@ ################################################################################ ## Form generated from reading UI file 'MainWindow_resp_quality_label.ui' ## -## Created by: Qt User Interface Compiler version 6.8.2 +## Created by: Qt User Interface Compiler version 6.7.0 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ################################################################################ @@ -330,28 +330,12 @@ class Ui_MainWindow_resp_quality_label(object): self.groupBox_label_operation.setObjectName(u"groupBox_label_operation") self.gridLayout_7 = QGridLayout(self.groupBox_label_operation) self.gridLayout_7.setObjectName(u"gridLayout_7") - self.label_10 = QLabel(self.groupBox_label_operation) - self.label_10.setObjectName(u"label_10") - sizePolicy1.setHeightForWidth(self.label_10.sizePolicy().hasHeightForWidth()) - self.label_10.setSizePolicy(sizePolicy1) - self.label_10.setFont(font1) - self.label_10.setAlignment(Qt.AlignmentFlag.AlignCenter) - - self.gridLayout_7.addWidget(self.label_10, 1, 0, 1, 1) - - self.lineEdit_current_part_label = QLineEdit(self.groupBox_label_operation) - self.lineEdit_current_part_label.setObjectName(u"lineEdit_current_part_label") - self.lineEdit_current_part_label.setEnabled(False) - self.lineEdit_current_part_label.setFont(font1) - - self.gridLayout_7.addWidget(self.lineEdit_current_part_label, 1, 1, 1, 1) - self.lineEdit_current_part_num = QLineEdit(self.groupBox_label_operation) self.lineEdit_current_part_num.setObjectName(u"lineEdit_current_part_num") self.lineEdit_current_part_num.setEnabled(False) self.lineEdit_current_part_num.setFont(font1) - self.gridLayout_7.addWidget(self.lineEdit_current_part_num, 0, 1, 1, 1) + self.gridLayout_7.addWidget(self.lineEdit_current_part_num, 1, 1, 1, 1) self.label_8 = QLabel(self.groupBox_label_operation) self.label_8.setObjectName(u"label_8") @@ -360,7 +344,23 @@ class Ui_MainWindow_resp_quality_label(object): self.label_8.setFont(font1) self.label_8.setAlignment(Qt.AlignmentFlag.AlignCenter) - self.gridLayout_7.addWidget(self.label_8, 0, 0, 1, 1) + self.gridLayout_7.addWidget(self.label_8, 1, 0, 1, 1) + + self.label_10 = QLabel(self.groupBox_label_operation) + self.label_10.setObjectName(u"label_10") + sizePolicy1.setHeightForWidth(self.label_10.sizePolicy().hasHeightForWidth()) + self.label_10.setSizePolicy(sizePolicy1) + self.label_10.setFont(font1) + self.label_10.setAlignment(Qt.AlignmentFlag.AlignCenter) + + self.gridLayout_7.addWidget(self.label_10, 2, 0, 1, 1) + + self.lineEdit_current_part_label = QLineEdit(self.groupBox_label_operation) + self.lineEdit_current_part_label.setObjectName(u"lineEdit_current_part_label") + self.lineEdit_current_part_label.setEnabled(False) + self.lineEdit_current_part_label.setFont(font1) + + self.gridLayout_7.addWidget(self.lineEdit_current_part_label, 2, 1, 1, 1) self.gridLayout_8 = QGridLayout() self.gridLayout_8.setObjectName(u"gridLayout_8") @@ -411,7 +411,13 @@ class Ui_MainWindow_resp_quality_label(object): self.gridLayout_8.addWidget(self.pushButton_save, 1, 0, 1, 1) - self.gridLayout_7.addLayout(self.gridLayout_8, 2, 0, 1, 2) + self.gridLayout_7.addLayout(self.gridLayout_8, 3, 0, 1, 2) + + self.checkBox_auto_next = QCheckBox(self.groupBox_label_operation) + self.checkBox_auto_next.setObjectName(u"checkBox_auto_next") + self.checkBox_auto_next.setFont(font1) + + self.gridLayout_7.addWidget(self.checkBox_auto_next, 0, 0, 1, 1) self.verticalLayout_2.addWidget(self.groupBox_label_operation) @@ -551,14 +557,15 @@ class Ui_MainWindow_resp_quality_label(object): self.label_7.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"~", None)) self.pushButton_refilter_orgBcg.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u5e94\u7528\u5e76\u8ba1\u7b97", None)) self.groupBox_label_operation.setTitle(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u6807\u6ce8\u64cd\u4f5c", None)) - self.label_10.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u5f53\u524d\u7247\u6bb5\u6807\u7b7e", None)) self.label_8.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u5f53\u524d\u7247\u6bb5\u6570", None)) + self.label_10.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u5f53\u524d\u7247\u6bb5\u6807\u7b7e", None)) self.pushButton_invalid.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u4e0d\u53ef\u7528\uff08G\uff09", None)) self.pushButton_reset.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u91cd\u7f6e\uff08H\uff09", None)) self.pushButton_valid.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u53ef\u7528\uff08F\uff09", None)) self.pushButton_prev.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u4e0a\u4e00\u6bb5(A)", None)) self.pushButton_next.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u4e0b\u4e00\u6bb5(D)", None)) self.pushButton_save.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u624b\u52a8\u4fdd\u5b58", None)) + self.checkBox_auto_next.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u81ea\u52a8\u4e0b\u4e00\u6bb5", None)) self.groupBox_4.setTitle(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u65e5\u5fd7", None)) self.groupBox_right.setTitle(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u547c\u5438\u53ef\u7528\u6027\u53ca\u95f4\u671f\u6807\u6ce8", None)) self.groupBox.setTitle(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u9891\u8c31", None)) diff --git a/ui/MainWindow/MainWindow_resp_quality_label.ui b/ui/MainWindow/MainWindow_resp_quality_label.ui index c0594da..97fc926 100644 --- a/ui/MainWindow/MainWindow_resp_quality_label.ui +++ b/ui/MainWindow/MainWindow_resp_quality_label.ui @@ -567,40 +567,7 @@ 标注操作 - - - - - 0 - 0 - - - - - 12 - - - - 当前片段标签 - - - Qt::AlignmentFlag::AlignCenter - - - - - - false - - - - 12 - - - - - false @@ -612,7 +579,7 @@ - + @@ -633,7 +600,40 @@ - + + + + + 0 + 0 + + + + + 12 + + + + 当前片段标签 + + + Qt::AlignmentFlag::AlignCenter + + + + + + + false + + + + 12 + + + + + @@ -739,6 +739,18 @@ + + + + + 12 + + + + 自动下一段 + + +