Mercurial > trustbridge
diff ui/mainwindow.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 | e04c57e9bf2e |
children | ee75e236843c |
line wrap: on
line diff
--- a/ui/mainwindow.cpp Tue Jul 15 16:07:15 2014 +0200 +++ b/ui/mainwindow.cpp Tue Jul 15 16:30:09 2014 +0200 @@ -440,11 +440,6 @@ QVBoxLayout *infoHeaderTextLayout = new QVBoxLayout; QVBoxLayout *infoCenterLayout = new QVBoxLayout; - QImage *infoLogoImage = new QImage(":/img/logo.png"); - QLabel *infoLogo = new QLabel; - infoLogo->setBackgroundRole(QPalette::Base); - infoLogo->setPixmap(QPixmap::fromImage(*infoLogoImage)); - QLabel *infoTitle = new QLabel("<h1>" + tr("TrustBridge") + "</h1>"); QString infoVersion = tr("Version: "); infoVersion.append(QApplication::applicationVersion()); QLabel *appVersion = new QLabel(infoVersion); @@ -456,42 +451,29 @@ infoHeaderSeparator->setFrameShape(QFrame::HLine); infoHeaderSeparator->setFrameShadow(QFrame::Sunken); - infoHeaderTextLayout->addWidget(infoTitle); infoHeaderTextLayout->addWidget(appVersion); - infoHeaderLayout->addWidget(infoLogo); infoHeaderLayout->addLayout(infoHeaderTextLayout); infoHeaderLayout->insertStretch(2, 10); QLabel *textDesc = new QLabel(tr("TrustBridge is a root certificate" - " installer for Windows and GNU/Linux.")); - textDesc->setTextInteractionFlags( - Qt::TextSelectableByMouse | - Qt::TextSelectableByKeyboard); - QLabel *textManage = new QLabel(tr("The root certificate lists are managed" + " installer for Windows and GNU/Linux.<br/>") + + 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" + "Federal Office for Information Security (BSI)</a>.<br/><br/>") + + 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" + " contracted by the German Federal Office for Information Security (BSI).<br/><br/>") + + tr("TrustBridge is Free Software licensed" + " under GNU GPL v2+.<br/><br/>Copyright (C) 2014 by Bundesamt für Sicherheit" " in der Informationstechnik")); - textLicense->setTextInteractionFlags( + textDesc->setTextFormat(Qt::RichText); + textDesc->setTextInteractionFlags( Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard); infoCenterLayout->addWidget(infoHeaderSeparator); infoCenterLayout->addWidget(textDesc); - infoCenterLayout->addWidget(textManage); - infoCenterLayout->addWidget(textDevel); - infoCenterLayout->addWidget(textLicense); infoCenterLayout->insertSpacing(2, 10); infoCenterLayout->insertSpacing(4, 10); infoCenterLayout->insertSpacing(6, 10);