Qt: Add TextBrowserInteraction to labels where appropriate

This commit is contained in:
TheTechnician27 2025-10-26 10:57:14 -05:00 committed by GovanifY
parent 94ccafd745
commit bfd2775074
13 changed files with 107 additions and 5 deletions

View File

@ -81,6 +81,9 @@
<property name="wordWrap"> <property name="wordWrap">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget> </widget>
</item> </item>
<item> <item>
@ -115,6 +118,9 @@
<property name="wordWrap"> <property name="wordWrap">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget> </widget>
</item> </item>
<item> <item>

View File

@ -43,6 +43,9 @@
<property name="buddy"> <property name="buddy">
<cstring>label</cstring> <cstring>label</cstring>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget> </widget>
</item> </item>
</layout> </layout>
@ -58,6 +61,9 @@
<property name="buddy"> <property name="buddy">
<cstring>urls</cstring> <cstring>urls</cstring>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget> </widget>
</item> </item>
<item> <item>
@ -74,6 +80,9 @@
<property name="buddy"> <property name="buddy">
<cstring>useTitleFileNames</cstring> <cstring>useTitleFileNames</cstring>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget> </widget>
</item> </item>
<item> <item>

View File

@ -34,6 +34,9 @@
<property name="wordWrap"> <property name="wordWrap">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget> </widget>
</item> </item>
<item> <item>

View File

@ -1753,7 +1753,7 @@ void MainWindow::onToolsCoverDownloaderTriggered()
{ {
// This can be invoked via big picture, so exit fullscreen. // This can be invoked via big picture, so exit fullscreen.
VMLock lock(pauseAndLockVM()); VMLock lock(pauseAndLockVM());
CoverDownloadDialog dlg(lock.getDialogParent()); CoverDownloadDialog dlg(this);
connect(&dlg, &CoverDownloadDialog::coverRefreshRequested, m_game_list_widget, &GameListWidget::refreshGridCovers); connect(&dlg, &CoverDownloadDialog::coverRefreshRequested, m_game_list_widget, &GameListWidget::refreshGridCovers);
dlg.exec(); dlg.exec();
} }

View File

@ -429,6 +429,9 @@ Login token generated at:</string>
<property name="buddy"> <property name="buddy">
<cstring>viewProfile</cstring> <cstring>viewProfile</cstring>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget> </widget>
</item> </item>
<item> <item>
@ -469,6 +472,9 @@ Login token generated at:</string>
<property name="alignment"> <property name="alignment">
<set>Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignTop</set> <set>Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignTop</set>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget> </widget>
</item> </item>
</layout> </layout>

View File

@ -133,6 +133,9 @@
<property name="alignment"> <property name="alignment">
<set>Qt::AlignmentFlag::AlignCenter</set> <set>Qt::AlignmentFlag::AlignCenter</set>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget> </widget>
</item> </item>
<item row="0" column="0"> <item row="0" column="0">

View File

@ -40,6 +40,9 @@
<property name="buddy"> <property name="buddy">
<cstring>searchDirectory</cstring> <cstring>searchDirectory</cstring>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget> </widget>
</item> </item>
<item row="1" column="0" colspan="2"> <item row="1" column="0" colspan="2">

View File

@ -64,6 +64,9 @@
<property name="wordWrap"> <property name="wordWrap">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget> </widget>
</item> </item>
</layout> </layout>
@ -90,6 +93,9 @@
<property name="wordWrap"> <property name="wordWrap">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget> </widget>
</item> </item>
</layout> </layout>
@ -109,6 +115,9 @@
<property name="wordWrap"> <property name="wordWrap">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget> </widget>
</item> </item>
<item row="1" column="0"> <item row="1" column="0">
@ -142,6 +151,9 @@
<property name="wordWrap"> <property name="wordWrap">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget> </widget>
</item> </item>
<item row="1" column="1"> <item row="1" column="1">
@ -200,9 +212,15 @@
<property name="text"> <property name="text">
<string>PCSX2 allows you to use your mouse to simulate analog stick movement.</string> <string>PCSX2 allows you to use your mouse to simulate analog stick movement.</string>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
<property name="wordWrap"> <property name="wordWrap">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget> </widget>
</item> </item>
<item row="1" column="0" colspan="2"> <item row="1" column="0" colspan="2">
@ -240,6 +258,9 @@
<property name="text"> <property name="text">
<string>The XInput source provides support for Xbox 360 / Xbox One / Xbox Series controllers, and third party controllers which implement the XInput protocol.</string> <string>The XInput source provides support for Xbox 360 / Xbox One / Xbox Series controllers, and third party controllers which implement the XInput protocol.</string>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
<property name="wordWrap"> <property name="wordWrap">
<bool>true</bool> <bool>true</bool>
</property> </property>

View File

@ -33,13 +33,19 @@
<widget class="QListWidget" name="bindList"/> <widget class="QListWidget" name="bindList"/>
</item> </item>
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="label_2"> <widget class="QLabel" name="bindListLabel">
<property name="text"> <property name="text">
<string>Select the buttons which you want to trigger with this macro. All buttons are activated concurrently.</string> <string>Select the buttons which you want to trigger with this macro. All buttons are activated concurrently.</string>
</property> </property>
<property name="wordWrap"> <property name="wordWrap">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
<property name="buddy">
<cstring>bindList</cstring>
</property>
</widget> </widget>
</item> </item>
</layout> </layout>
@ -52,13 +58,19 @@
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_2"> <layout class="QVBoxLayout" name="verticalLayout_2">
<item> <item>
<widget class="QLabel" name="label_3"> <widget class="QLabel" name="pressureLabel">
<property name="text"> <property name="text">
<string>For buttons which are pressure sensitive, this slider controls how much force will be simulated when the macro is active.</string> <string>For buttons which are pressure sensitive, this slider controls how much force will be simulated when the macro is active.</string>
</property> </property>
<property name="wordWrap"> <property name="wordWrap">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
<property name="buddy">
<cstring>pressure</cstring>
</property>
</widget> </widget>
</item> </item>
<item> <item>
@ -116,6 +128,9 @@
<property name="wordWrap"> <property name="wordWrap">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget> </widget>
</item> </item>
<item> <item>
@ -137,10 +152,13 @@
<item row="2" column="0"> <item row="2" column="0">
<layout class="QHBoxLayout" name="deadzoneLayout" stretch="0,1,0"> <layout class="QHBoxLayout" name="deadzoneLayout" stretch="0,1,0">
<item> <item>
<widget class="QLabel" name="label_4"> <widget class="QLabel" name="deadzoneLabel">
<property name="text"> <property name="text">
<string>Deadzone:</string> <string>Deadzone:</string>
</property> </property>
<property name="buddy">
<cstring>deadzone</cstring>
</property>
</widget> </widget>
</item> </item>
<item> <item>
@ -190,6 +208,9 @@
<property name="text"> <property name="text">
<string>Macro will toggle every N frames.</string> <string>Macro will toggle every N frames.</string>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget> </widget>
</item> </item>
<item> <item>

View File

@ -28,6 +28,9 @@
<property name="wordWrap"> <property name="wordWrap">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget> </widget>
</item> </item>
<item> <item>

View File

@ -49,6 +49,9 @@
<property name="buddy"> <property name="buddy">
<cstring>cache</cstring> <cstring>cache</cstring>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget> </widget>
</item> </item>
</layout> </layout>
@ -92,6 +95,9 @@
<property name="buddy"> <property name="buddy">
<cstring>cheats</cstring> <cstring>cheats</cstring>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget> </widget>
</item> </item>
</layout> </layout>
@ -130,7 +136,10 @@
<item row="0" column="0" colspan="4"> <item row="0" column="0" colspan="4">
<widget class="QLabel" name="snaphotsLabel"> <widget class="QLabel" name="snaphotsLabel">
<property name="text"> <property name="text">
<string>Used for screenshots and saving GS dumps.</string> <string>Used for saving screenshots and GS dumps.</string>
</property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property> </property>
<property name="buddy"> <property name="buddy">
<cstring>snapshots</cstring> <cstring>snapshots</cstring>
@ -161,6 +170,9 @@
<property name="buddy"> <property name="buddy">
<cstring>saveStates</cstring> <cstring>saveStates</cstring>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget> </widget>
</item> </item>
<item row="1" column="1"> <item row="1" column="1">
@ -228,6 +240,9 @@
<property name="buddy"> <property name="buddy">
<cstring>covers</cstring> <cstring>covers</cstring>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget> </widget>
</item> </item>
</layout> </layout>
@ -271,6 +286,9 @@
<property name="buddy"> <property name="buddy">
<cstring>videoDumpingDirectory</cstring> <cstring>videoDumpingDirectory</cstring>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget> </widget>
</item> </item>
</layout> </layout>

View File

@ -39,6 +39,9 @@
<property name="buddy"> <property name="buddy">
<cstring>searchDirectoryList</cstring> <cstring>searchDirectoryList</cstring>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget> </widget>
</item> </item>
<item> <item>
@ -118,6 +121,9 @@
<property name="buddy"> <property name="buddy">
<cstring>excludedPaths</cstring> <cstring>excludedPaths</cstring>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget> </widget>
</item> </item>
<item> <item>

View File

@ -103,6 +103,9 @@
<property name="buddy"> <property name="buddy">
<cstring>texturesDirectory</cstring> <cstring>texturesDirectory</cstring>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget> </widget>
</item> </item>
</layout> </layout>