MCPcopy Create free account
hub / github.com/BasicProtein/AugmentCode-Free / LinkLabel

Class LinkLabel

gui_qt6/components.py:78–93  ·  view source on GitHub ↗

链接标签组件

Source from the content-addressed store, hash-verified

76
77
78class LinkLabel(QLabel):
79 """链接标签组件"""
80
81 clicked = pyqtSignal()
82
83 def __init__(self, text: str, parent=None):
84 super().__init__(text, parent)
85 self.setFont(get_default_font(10))
86 self.setProperty("class", "link")
87 self.setCursor(QCursor(Qt.CursorShape.PointingHandCursor))
88
89 def mousePressEvent(self, event):
90 """鼠标点击事件"""
91 if event.button() == Qt.MouseButton.LeftButton:
92 self.clicked.emit()
93 super().mousePressEvent(event)
94
95
96class WarningFrame(QFrame):

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected