comparison ui/aboutdialog.cpp @ 568:8dbfd0cb534b

Made text selectable in about dialog.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 23 May 2014 10:43:04 +0200
parents dec797c7230c
children 1e18d4c1932a
comparison
equal deleted inserted replaced
567:75e39c52aa94 568:8dbfd0cb534b
34 logo->setPixmap(QPixmap::fromImage(*logoImage)); 34 logo->setPixmap(QPixmap::fromImage(*logoImage));
35 QLabel *title = new QLabel("<h2>" + tr("TrustBridge") + "</h2>"); 35 QLabel *title = new QLabel("<h2>" + tr("TrustBridge") + "</h2>");
36 QString version = tr("Version: "); 36 QString version = tr("Version: ");
37 version.append(QApplication::applicationVersion()); 37 version.append(QApplication::applicationVersion());
38 QLabel *appVersion = new QLabel(version); 38 QLabel *appVersion = new QLabel(version);
39 appVersion->setTextInteractionFlags(
40 Qt::TextSelectableByMouse |
41 Qt::TextSelectableByKeyboard);
39 42
40 QFrame *headerSeparator = new QFrame(); 43 QFrame *headerSeparator = new QFrame();
41 headerSeparator->setFrameShape(QFrame::HLine); 44 headerSeparator->setFrameShape(QFrame::HLine);
42 headerSeparator->setFrameShadow(QFrame::Sunken); 45 headerSeparator->setFrameShadow(QFrame::Sunken);
43 46
47 headerLayout->addLayout(headerTextLayout); 50 headerLayout->addLayout(headerTextLayout);
48 headerLayout->insertStretch(2, 10); 51 headerLayout->insertStretch(2, 10);
49 52
50 QLabel *textDesc = new QLabel(tr("TrustBridge is a root certificate" 53 QLabel *textDesc = new QLabel(tr("TrustBridge is a root certificate"
51 " installer for Windows and Linux.")); 54 " installer for Windows and Linux."));
55 textDesc->setTextInteractionFlags(
56 Qt::TextSelectableByMouse |
57 Qt::TextSelectableByKeyboard);
52 QLabel *textManage = new QLabel(tr("The root certificate lists are managed" 58 QLabel *textManage = new QLabel(tr("The root certificate lists are managed"
53 " by the German <a href=\"https://www.bsi.bund.de\">" 59 " by the German <a href=\"https://www.bsi.bund.de\">"
54 "Federal Office for Information Security (BSI)</a>.\n\n")); 60 "Federal Office for Information Security (BSI)</a>.\n\n"));
61 textManage->setTextInteractionFlags(
62 Qt::TextBrowserInteraction |
63 Qt::TextSelectableByKeyboard);
55 QLabel *textDevel = new QLabel(tr("The software was developed by the companies" 64 QLabel *textDevel = new QLabel(tr("The software was developed by the companies"
56 " <a href=\"http://www.intevation.de\">Intevation GmbH</a> and " 65 " <a href=\"http://www.intevation.de\">Intevation GmbH</a> and "
57 " <a href=\"http://www.dn-systems.de\">DN-Systems GmbH</a>, <br>" 66 " <a href=\"http://www.dn-systems.de\">DN-Systems GmbH</a>, <br>"
58 " contracted by the German Federal Office for Information Security (BSI).\n\n")); 67 " contracted by the German Federal Office for Information Security (BSI).\n\n"));
68 textDevel->setTextInteractionFlags(
69 Qt::TextBrowserInteraction |
70 Qt::TextSelectableByKeyboard);
59 QLabel *textLicense = new QLabel(tr("TrustBridge is Free Software licensed" 71 QLabel *textLicense = new QLabel(tr("TrustBridge is Free Software licensed"
60 " under GNU GPL v2+.\n\nCopyright (C) 2014 by Bundesamt für Sicherheit" 72 " under GNU GPL v2+.\n\nCopyright (C) 2014 by Bundesamt für Sicherheit"
61 " in der Informationstechnik")); 73 " in der Informationstechnik"));
74 textLicense->setTextInteractionFlags(
75 Qt::TextSelectableByMouse |
76 Qt::TextSelectableByKeyboard);
62 77
63 centerLayout->addWidget(headerSeparator); 78 centerLayout->addWidget(headerSeparator);
64 centerLayout->addWidget(textDesc); 79 centerLayout->addWidget(textDesc);
65 centerLayout->addWidget(textManage); 80 centerLayout->addWidget(textManage);
66 centerLayout->addWidget(textDevel); 81 centerLayout->addWidget(textDevel);

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