Fix QTextEdit -> QTextBrowser for clickable links

setOpenExternalLinks is only available on QTextBrowser, not QTextEdit.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
rob 2026-01-14 04:58:39 -04:00
parent 518a04a8b0
commit 305c09a929
1 changed files with 3 additions and 5 deletions

View File

@ -3,7 +3,7 @@
from PySide6.QtWidgets import (
QWidget, QVBoxLayout, QHBoxLayout, QLineEdit,
QPushButton, QTableWidget, QTableWidgetItem, QLabel,
QHeaderView, QGroupBox, QTextEdit, QSplitter, QMessageBox,
QHeaderView, QGroupBox, QTextBrowser, QSplitter, QMessageBox,
QComboBox, QFrame
)
from PySide6.QtCore import Qt, QThread, Signal
@ -211,11 +211,9 @@ class RegistryPage(QWidget):
details_box = QGroupBox("Tool Details")
details_layout = QVBoxLayout(details_box)
self.details_text = QTextEdit()
self.details_text.setReadOnly(True)
self.details_text.setPlaceholderText("Select a tool to view details")
self.details_text.anchorClicked = self._on_tag_clicked
self.details_text = QTextBrowser()
self.details_text.setOpenExternalLinks(False)
self.details_text.anchorClicked.connect(self._on_tag_clicked)
details_layout.addWidget(self.details_text)
right_layout.addWidget(details_box, 1)