changeset 844:fa68e5aeeaac

Make links clickable and also change the about info in mainwindow.
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 30 Jul 2014 10:44:52 +0200
parents c27a9b2b096e
children d33834129d2a
files ui/aboutdialog.cpp ui/mainwindow.cpp
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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);

http://wald.intevation.org/projects/trustbridge/