qtui: Add keyboard/mouse access to version links
authorShane Synan <digitalcircuit36939@gmail.com>
Wed, 22 Jul 2020 22:46:16 +0000 (18:46 -0400)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sat, 28 Nov 2020 12:43:25 +0000 (13:43 +0100)
Enable the use of mouse and keyboard for accessing Quassel version
information links, including mouse selection (for copy-paste).

This fixes having to right-click -> Copy Link Location to open commit
information.  Note that untrusted clients/cores can set their version
information to open ANY external link, including disguised/phishing
links.  However, this requires manual interaction and I suspect
there's bigger problems if one is connecting to untrusted Quassel
clients/cores and clicking the links in File -> Core Info...

Update About to also allow keyboard access to the version link.  All
the other links were keyboard accessible already.

src/qtui/aboutdlg.ui
src/qtui/coreinfodlg.ui
src/qtui/coresessionwidget.ui

index e7edcd9..b98f724 100644 (file)
@@ -78,7 +78,7 @@ p, li { white-space: pre-wrap; }
              <bool>true</bool>
             </property>
             <property name="textInteractionFlags">
-             <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
+             <set>Qt::TextBrowserInteraction</set>
             </property>
            </widget>
           </item>
index 880c955..b71ee79 100644 (file)
        <property name="text">
         <string notr="true">&lt;core version&gt;</string>
        </property>
+       <property name="openExternalLinks">
+        <bool>true</bool>
+       </property>
+       <property name="textInteractionFlags">
+        <set>Qt::TextBrowserInteraction</set>
+       </property>
       </widget>
      </item>
      <item row="1" column="0">
index a0e6531..07e5c22 100644 (file)
           <property name="text">
            <string notr="true">v0.13-pre (0.12.0+372 git-12df418)</string>
           </property>
+          <property name="openExternalLinks">
+           <bool>true</bool>
+          </property>
+          <property name="textInteractionFlags">
+           <set>Qt::TextBrowserInteraction</set>
+          </property>
          </widget>
         </item>
         <item row="1" column="0">