changeset 568:8dbfd0cb534b

Made text selectable in about dialog.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 23 May 2014 10:43:04 +0200
parents 75e39c52aa94
children 6677d4ecb6fd ab622e094786
files ui/aboutdialog.cpp
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ui/aboutdialog.cpp	Fri May 23 10:24:51 2014 +0200
+++ b/ui/aboutdialog.cpp	Fri May 23 10:43:04 2014 +0200
@@ -36,6 +36,9 @@
     QString version = tr("Version: ");
     version.append(QApplication::applicationVersion());
     QLabel *appVersion = new QLabel(version);
+    appVersion->setTextInteractionFlags(
+        Qt::TextSelectableByMouse |
+        Qt::TextSelectableByKeyboard);
 
     QFrame *headerSeparator = new QFrame();
     headerSeparator->setFrameShape(QFrame::HLine);
@@ -49,16 +52,28 @@
 
     QLabel *textDesc = new QLabel(tr("TrustBridge is a root certificate"
         " installer for Windows and Linux."));
+    textDesc->setTextInteractionFlags(
+        Qt::TextSelectableByMouse |
+        Qt::TextSelectableByKeyboard);
     QLabel *textManage = new QLabel(tr("The root certificate lists are managed"
         " by the German <a href=\"https://www.bsi.bund.de\">"
         "Federal Office for Information Security (BSI)</a>.\n\n"));
+    textManage->setTextInteractionFlags(
+        Qt::TextBrowserInteraction |
+        Qt::TextSelectableByKeyboard);
     QLabel *textDevel = new QLabel(tr("The software was developed by the companies"
         " <a href=\"http://www.intevation.de\">Intevation GmbH</a> and "
         " <a href=\"http://www.dn-systems.de\">DN-Systems GmbH</a>, <br>"
         " contracted by the German Federal Office for Information Security (BSI).\n\n"));
+    textDevel->setTextInteractionFlags(
+        Qt::TextBrowserInteraction |
+        Qt::TextSelectableByKeyboard);
     QLabel *textLicense = new QLabel(tr("TrustBridge is Free Software licensed"
         " under GNU GPL v2+.\n\nCopyright (C) 2014 by Bundesamt für Sicherheit"
         " in der Informationstechnik"));
+    textLicense->setTextInteractionFlags(
+        Qt::TextSelectableByMouse |
+        Qt::TextSelectableByKeyboard);
 
     centerLayout->addWidget(headerSeparator);
     centerLayout->addWidget(textDesc);

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