diff options
author | ConfuSomu | 2024-01-06 15:52:27 +0100 |
---|---|---|
committer | ConfuSomu | 2024-01-06 15:52:27 +0100 |
commit | ff8e4ceee85d184f221021e5eef4bb93b6d97803 (patch) | |
tree | 21ab7f35d008f8595621ed65ac978f156bb773d7 | |
parent | 6ce869ee1a60e151b8697513a101dbef341ff40d (diff) | |
download | ActorViewer-ff8e4ceee85d184f221021e5eef4bb93b6d97803.tar ActorViewer-ff8e4ceee85d184f221021e5eef4bb93b6d97803.tar.gz ActorViewer-ff8e4ceee85d184f221021e5eef4bb93b6d97803.zip |
Make hyperlinks clickable in StatusInfoWidget
I had to make the widget a QTextBrowser as QTextEdit does not allow easy
opening of hyperlinks.
-rw-r--r-- | src/widgets/status_info.ui | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/widgets/status_info.ui b/src/widgets/status_info.ui index b8b2586..c35d746 100644 --- a/src/widgets/status_info.ui +++ b/src/widgets/status_info.ui @@ -15,7 +15,7 @@ </property> <layout class="QGridLayout" name="gridLayout"> <item row="0" column="0"> - <widget class="QTextEdit" name="statusInfoText"> + <widget class="QTextBrowser" name="statusInfoText"> <property name="cursor" stdset="0"> <cursorShape>IBeamCursor</cursorShape> </property> @@ -35,6 +35,12 @@ p, li { white-space: pre-wrap; } <property name="textInteractionFlags"> <set>Qt::TextBrowserInteraction</set> </property> + <property name="openExternalLinks"> + <bool>true</bool> + </property> + <property name="openLinks"> + <bool>true</bool> + </property> </widget> </item> </layout> |