# HG changeset patch # User Raimund Renkert # Date 1400834584 -7200 # Node ID 8dbfd0cb534b6078b693a0d86d64167c37806741 # Parent 75e39c52aa9491e4e5dafa889a4d84475bd65244 Made text selectable in about dialog. diff -r 75e39c52aa94 -r 8dbfd0cb534b ui/aboutdialog.cpp --- 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 " "Federal Office for Information Security (BSI).\n\n")); + textManage->setTextInteractionFlags( + Qt::TextBrowserInteraction | + Qt::TextSelectableByKeyboard); QLabel *textDevel = new QLabel(tr("The software was developed by the companies" " Intevation GmbH and " " DN-Systems GmbH,
" " 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);