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

Method _create_bottom_section

gui_qt6/main_page.py:313–342  ·  view source on GitHub ↗

创建底部信息区域

(self, parent_layout)

Source from the content-addressed store, hash-verified

311 parent_layout.addWidget(self.status_label)
312
313 def _create_bottom_section(self, parent_layout):
314 """创建底部信息区域"""
315 # 版本信息
316 self.version_label = SecondaryLabel(get_text("app.version"))
317 self.version_label.setAlignment(Qt.AlignmentFlag.AlignCenter)
318 parent_layout.addWidget(self.version_label)
319
320 # 版权信息
321 self.copyright_label = SecondaryLabel(get_text("copyright.notice"))
322 self.copyright_label.setAlignment(Qt.AlignmentFlag.AlignCenter)
323 parent_layout.addWidget(self.copyright_label)
324
325 # GitHub链接
326 github_layout = QHBoxLayout()
327 github_layout.addStretch()
328
329 open_source_label = SecondaryLabel(get_text("copyright.open_source"))
330 github_layout.addWidget(open_source_label)
331
332 self.github_link = LinkLabel("GitHub")
333 github_layout.addWidget(self.github_link)
334
335 github_layout.addStretch()
336 parent_layout.addLayout(github_layout)
337
338 # 防诈骗警告
339 self.fraud_label = SecondaryLabel(get_text("copyright.report_fraud"))
340 self.fraud_label.setAlignment(Qt.AlignmentFlag.AlignCenter)
341 self.fraud_label.setStyleSheet("color: #dc2626; font-weight: bold;")
342 parent_layout.addWidget(self.fraud_label)
343
344 def _connect_signals(self):
345 """连接信号"""

Callers 1

_setup_uiMethod · 0.95

Calls 3

get_textFunction · 0.90
SecondaryLabelClass · 0.85
LinkLabelClass · 0.85

Tested by

no test coverage detected