Fix QTextEdit -> QTextBrowser for clickable links
setOpenExternalLinks is only available on QTextBrowser, not QTextEdit. Co-Authored-By: Claude Opus 4.5 <[email protected]>
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
from PySide6.QtWidgets import (
|
from PySide6.QtWidgets import (
|
||||||
QWidget, QVBoxLayout, QHBoxLayout, QLineEdit,
|
QWidget, QVBoxLayout, QHBoxLayout, QLineEdit,
|
||||||
QPushButton, QTableWidget, QTableWidgetItem, QLabel,
|
QPushButton, QTableWidget, QTableWidgetItem, QLabel,
|
||||||
QHeaderView, QGroupBox, QTextEdit, QSplitter, QMessageBox,
|
QHeaderView, QGroupBox, QTextBrowser, QSplitter, QMessageBox,
|
||||||
QComboBox, QFrame
|
QComboBox, QFrame
|
||||||
)
|
)
|
||||||
from PySide6.QtCore import Qt, QThread, Signal
|
from PySide6.QtCore import Qt, QThread, Signal
|
||||||
@@ -211,11 +211,9 @@ class RegistryPage(QWidget):
|
|||||||
details_box = QGroupBox("Tool Details")
|
details_box = QGroupBox("Tool Details")
|
||||||
details_layout = QVBoxLayout(details_box)
|
details_layout = QVBoxLayout(details_box)
|
||||||
|
|
||||||
self.details_text = QTextEdit()
|
self.details_text = QTextBrowser()
|
||||||
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.setOpenExternalLinks(False)
|
self.details_text.setOpenExternalLinks(False)
|
||||||
|
self.details_text.anchorClicked.connect(self._on_tag_clicked)
|
||||||
details_layout.addWidget(self.details_text)
|
details_layout.addWidget(self.details_text)
|
||||||
|
|
||||||
right_layout.addWidget(details_box, 1)
|
right_layout.addWidget(details_box, 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user