[PATCH] Make links clickable and also change the about info in mainwindow

Wald Commits scm-commit at wald.intevation.org
Wed Jul 30 10:44:55 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1406709892 -7200
# Node ID fa68e5aeeaacd2dfca35459ddd0dfce1580595c0
# Parent  c27a9b2b096e5fd4e49c008c39f0d95155a4d19d
Make links clickable and also change the about info in mainwindow.

diff -r c27a9b2b096e -r fa68e5aeeaac ui/aboutdialog.cpp
--- a/ui/aboutdialog.cpp	Wed Jul 30 10:36:58 2014 +0200
+++ b/ui/aboutdialog.cpp	Wed Jul 30 10:44:52 2014 +0200
@@ -56,7 +56,8 @@
     textDesc->setTextFormat(Qt::RichText);
     textDesc->setTextInteractionFlags(
         Qt::TextSelectableByMouse |
-        Qt::TextSelectableByKeyboard);
+        Qt::TextSelectableByKeyboard |
+        Qt::LinksAccessibleByMouse);
     textDesc->setOpenExternalLinks(true);
 
     centerLayout->addWidget(textDesc);
diff -r c27a9b2b096e -r fa68e5aeeaac ui/mainwindow.cpp
--- a/ui/mainwindow.cpp	Wed Jul 30 10:36:58 2014 +0200
+++ b/ui/mainwindow.cpp	Wed Jul 30 10:44:52 2014 +0200
@@ -485,7 +485,9 @@
     textDesc->setTextFormat(Qt::RichText);
     textDesc->setTextInteractionFlags(
         Qt::TextSelectableByMouse |
-        Qt::TextSelectableByKeyboard);
+        Qt::TextSelectableByKeyboard |
+        Qt::LinksAccessibleByMouse);
+    textDesc->setOpenExternalLinks(true);
 
     infoCenterLayout->addWidget(infoHeaderSeparator);
     infoCenterLayout->addWidget(textDesc);


More information about the Trustbridge-commits mailing list