增加了 系统诊断弹窗以及 管片任务的详情按钮弹窗

This commit is contained in:
2025-11-07 21:58:20 +08:00
parent 4c48332c06
commit 52d753267b
9 changed files with 365 additions and 15 deletions

View File

@ -27,6 +27,10 @@ import sys
from utils.image_paths import ImagePaths
"""
系统诊断按钮的弹窗: 可以显示设备的状态
"""
class CustomDropdown(QWidget):
"""自定义下拉框组件"""
@ -107,11 +111,7 @@ class CustomDropdown(QWidget):
if self.is_expanded:
self.list_widget.hide()
# 箭头恢复向下
self.arrow_label.setPixmap(
self.arrow_pixmap.scaled(
12, 9, Qt.KeepAspectRatio, Qt.SmoothTransformation
)
)
self.arrow_label.setPixmap(self.arrow_pixmap)
else:
# 计算下拉框位置(在标签下方对齐)
label_pos = self.result_label.mapToGlobal(