Mercurial > trustbridge
comparison ui/aboutdialog.cpp @ 807:1e18d4c1932a
Unify about dialog labels and Remove Trustbridge header
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Tue, 15 Jul 2014 16:30:09 +0200 |
parents | 8dbfd0cb534b |
children | c27a9b2b096e |
comparison
equal
deleted
inserted
replaced
806:bb02101a7f4b | 807:1e18d4c1932a |
---|---|
26 QHBoxLayout *headerLayout = new QHBoxLayout; | 26 QHBoxLayout *headerLayout = new QHBoxLayout; |
27 QVBoxLayout *headerTextLayout = new QVBoxLayout; | 27 QVBoxLayout *headerTextLayout = new QVBoxLayout; |
28 QVBoxLayout *centerLayout = new QVBoxLayout; | 28 QVBoxLayout *centerLayout = new QVBoxLayout; |
29 QHBoxLayout *bottomLayout = new QHBoxLayout; | 29 QHBoxLayout *bottomLayout = new QHBoxLayout; |
30 | 30 |
31 QImage *logoImage = new QImage(":/img/logo.png"); | |
32 QLabel *logo = new QLabel; | |
33 logo->setBackgroundRole(QPalette::Base); | |
34 logo->setPixmap(QPixmap::fromImage(*logoImage)); | |
35 QLabel *title = new QLabel("<h2>" + tr("TrustBridge") + "</h2>"); | 31 QLabel *title = new QLabel("<h2>" + tr("TrustBridge") + "</h2>"); |
36 QString version = tr("Version: "); | 32 QString version = tr("Version: "); |
37 version.append(QApplication::applicationVersion()); | 33 version.append(QApplication::applicationVersion()); |
38 QLabel *appVersion = new QLabel(version); | 34 QLabel *appVersion = new QLabel(version); |
39 appVersion->setTextInteractionFlags( | 35 appVersion->setTextInteractionFlags( |
40 Qt::TextSelectableByMouse | | 36 Qt::TextSelectableByMouse | |
41 Qt::TextSelectableByKeyboard); | 37 Qt::TextSelectableByKeyboard); |
42 | 38 |
43 QFrame *headerSeparator = new QFrame(); | |
44 headerSeparator->setFrameShape(QFrame::HLine); | |
45 headerSeparator->setFrameShadow(QFrame::Sunken); | |
46 | |
47 headerTextLayout->addWidget(title); | 39 headerTextLayout->addWidget(title); |
48 headerTextLayout->addWidget(appVersion); | 40 headerTextLayout->addWidget(appVersion); |
49 headerLayout->addWidget(logo); | |
50 headerLayout->addLayout(headerTextLayout); | 41 headerLayout->addLayout(headerTextLayout); |
51 headerLayout->insertStretch(2, 10); | 42 headerLayout->insertStretch(2, 10); |
52 | 43 |
53 QLabel *textDesc = new QLabel(tr("TrustBridge is a root certificate" | 44 QLabel *textDesc = new QLabel(tr("TrustBridge is a root certificate" |
54 " installer for Windows and Linux.")); | 45 " installer for Windows and GNU/Linux.<br/>") + |
46 tr("The root certificate lists are managed" | |
47 " by the German <a href=\"https://www.bsi.bund.de\">" | |
48 "Federal Office for Information Security (BSI)</a>.<br/><br/>") + | |
49 tr("The software was developed by the companies" | |
50 " <a href=\"http://www.intevation.de\">Intevation GmbH</a> and " | |
51 " <a href=\"http://www.dn-systems.de\">DN-Systems GmbH</a>, <br>" | |
52 " contracted by the German Federal Office for Information Security (BSI).<br/><br/>") + | |
53 tr("TrustBridge is Free Software licensed" | |
54 " under GNU GPL v2+.<br/><br/>Copyright (C) 2014 by Bundesamt für Sicherheit" | |
55 " in der Informationstechnik")); | |
56 textDesc->setTextFormat(Qt::RichText); | |
55 textDesc->setTextInteractionFlags( | 57 textDesc->setTextInteractionFlags( |
56 Qt::TextSelectableByMouse | | 58 Qt::TextSelectableByMouse | |
57 Qt::TextSelectableByKeyboard); | 59 Qt::TextSelectableByKeyboard); |
58 QLabel *textManage = new QLabel(tr("The root certificate lists are managed" | |
59 " by the German <a href=\"https://www.bsi.bund.de\">" | |
60 "Federal Office for Information Security (BSI)</a>.\n\n")); | |
61 textManage->setTextInteractionFlags( | |
62 Qt::TextBrowserInteraction | | |
63 Qt::TextSelectableByKeyboard); | |
64 QLabel *textDevel = new QLabel(tr("The software was developed by the companies" | |
65 " <a href=\"http://www.intevation.de\">Intevation GmbH</a> and " | |
66 " <a href=\"http://www.dn-systems.de\">DN-Systems GmbH</a>, <br>" | |
67 " contracted by the German Federal Office for Information Security (BSI).\n\n")); | |
68 textDevel->setTextInteractionFlags( | |
69 Qt::TextBrowserInteraction | | |
70 Qt::TextSelectableByKeyboard); | |
71 QLabel *textLicense = new QLabel(tr("TrustBridge is Free Software licensed" | |
72 " under GNU GPL v2+.\n\nCopyright (C) 2014 by Bundesamt für Sicherheit" | |
73 " in der Informationstechnik")); | |
74 textLicense->setTextInteractionFlags( | |
75 Qt::TextSelectableByMouse | | |
76 Qt::TextSelectableByKeyboard); | |
77 | 60 |
78 centerLayout->addWidget(headerSeparator); | |
79 centerLayout->addWidget(textDesc); | 61 centerLayout->addWidget(textDesc); |
80 centerLayout->addWidget(textManage); | |
81 centerLayout->addWidget(textDevel); | |
82 centerLayout->addWidget(textLicense); | |
83 centerLayout->insertSpacing(2, 10); | |
84 centerLayout->insertSpacing(4, 10); | |
85 centerLayout->insertSpacing(6, 10); | |
86 centerLayout->insertStretch(8, 10); | 62 centerLayout->insertStretch(8, 10); |
87 | 63 |
88 QPushButton *closeButton = new QPushButton(tr("Close")); | 64 QPushButton *closeButton = new QPushButton(tr("Close")); |
89 connect(closeButton, SIGNAL(clicked()), this, SLOT(close())); | 65 connect(closeButton, SIGNAL(clicked()), this, SLOT(close())); |
90 bottomLayout->insertStretch(0, 10); | 66 bottomLayout->insertStretch(0, 10); |