comparison 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
comparison
equal deleted inserted replaced
806:bb02101a7f4b 807:1e18d4c1932a
438 QVBoxLayout *infoPanelLayout = new QVBoxLayout; 438 QVBoxLayout *infoPanelLayout = new QVBoxLayout;
439 QHBoxLayout *infoHeaderLayout = new QHBoxLayout; 439 QHBoxLayout *infoHeaderLayout = new QHBoxLayout;
440 QVBoxLayout *infoHeaderTextLayout = new QVBoxLayout; 440 QVBoxLayout *infoHeaderTextLayout = new QVBoxLayout;
441 QVBoxLayout *infoCenterLayout = new QVBoxLayout; 441 QVBoxLayout *infoCenterLayout = new QVBoxLayout;
442 442
443 QImage *infoLogoImage = new QImage(":/img/logo.png");
444 QLabel *infoLogo = new QLabel;
445 infoLogo->setBackgroundRole(QPalette::Base);
446 infoLogo->setPixmap(QPixmap::fromImage(*infoLogoImage));
447 QLabel *infoTitle = new QLabel("<h1>" + tr("TrustBridge") + "</h1>");
448 QString infoVersion = tr("Version: "); 443 QString infoVersion = tr("Version: ");
449 infoVersion.append(QApplication::applicationVersion()); 444 infoVersion.append(QApplication::applicationVersion());
450 QLabel *appVersion = new QLabel(infoVersion); 445 QLabel *appVersion = new QLabel(infoVersion);
451 appVersion->setTextInteractionFlags( 446 appVersion->setTextInteractionFlags(
452 Qt::TextSelectableByMouse | 447 Qt::TextSelectableByMouse |
454 449
455 QFrame *infoHeaderSeparator = new QFrame(); 450 QFrame *infoHeaderSeparator = new QFrame();
456 infoHeaderSeparator->setFrameShape(QFrame::HLine); 451 infoHeaderSeparator->setFrameShape(QFrame::HLine);
457 infoHeaderSeparator->setFrameShadow(QFrame::Sunken); 452 infoHeaderSeparator->setFrameShadow(QFrame::Sunken);
458 453
459 infoHeaderTextLayout->addWidget(infoTitle);
460 infoHeaderTextLayout->addWidget(appVersion); 454 infoHeaderTextLayout->addWidget(appVersion);
461 infoHeaderLayout->addWidget(infoLogo);
462 infoHeaderLayout->addLayout(infoHeaderTextLayout); 455 infoHeaderLayout->addLayout(infoHeaderTextLayout);
463 infoHeaderLayout->insertStretch(2, 10); 456 infoHeaderLayout->insertStretch(2, 10);
464 457
465 QLabel *textDesc = new QLabel(tr("TrustBridge is a root certificate" 458 QLabel *textDesc = new QLabel(tr("TrustBridge is a root certificate"
466 " installer for Windows and GNU/Linux.")); 459 " installer for Windows and GNU/Linux.<br/>") +
460 tr("The root certificate lists are managed"
461 " by the German <a href=\"https://www.bsi.bund.de\">"
462 "Federal Office for Information Security (BSI)</a>.<br/><br/>") +
463 tr("The software was developed by the companies"
464 " <a href=\"http://www.intevation.de\">Intevation GmbH</a> and "
465 " <a href=\"http://www.dn-systems.de\">DN-Systems GmbH</a>, <br>"
466 " contracted by the German Federal Office for Information Security (BSI).<br/><br/>") +
467 tr("TrustBridge is Free Software licensed"
468 " under GNU GPL v2+.<br/><br/>Copyright (C) 2014 by Bundesamt für Sicherheit"
469 " in der Informationstechnik"));
470 textDesc->setTextFormat(Qt::RichText);
467 textDesc->setTextInteractionFlags( 471 textDesc->setTextInteractionFlags(
468 Qt::TextSelectableByMouse | 472 Qt::TextSelectableByMouse |
469 Qt::TextSelectableByKeyboard); 473 Qt::TextSelectableByKeyboard);
470 QLabel *textManage = new QLabel(tr("The root certificate lists are managed"
471 " by the German <a href=\"https://www.bsi.bund.de\">"
472 "Federal Office for Information Security (BSI)</a>.\n\n"));
473 textManage->setTextInteractionFlags(
474 Qt::TextBrowserInteraction |
475 Qt::TextSelectableByKeyboard);
476 QLabel *textDevel = new QLabel(tr("The software was developed by the companies"
477 " <a href=\"http://www.intevation.de\">Intevation GmbH</a> and "
478 " <a href=\"http://www.dn-systems.de\">DN-Systems GmbH</a>, <br>"
479 " contracted by the German Federal Office for Information Security (BSI).\n\n"));
480 textDevel->setTextInteractionFlags(
481 Qt::TextBrowserInteraction |
482 Qt::TextSelectableByKeyboard);
483 QLabel *textLicense = new QLabel(tr("TrustBridge is Free Software licensed"
484 " under GNU GPL v2+.\n\nCopyright (C) 2014 by Bundesamt für Sicherheit"
485 " in der Informationstechnik"));
486 textLicense->setTextInteractionFlags(
487 Qt::TextSelectableByMouse |
488 Qt::TextSelectableByKeyboard);
489 474
490 infoCenterLayout->addWidget(infoHeaderSeparator); 475 infoCenterLayout->addWidget(infoHeaderSeparator);
491 infoCenterLayout->addWidget(textDesc); 476 infoCenterLayout->addWidget(textDesc);
492 infoCenterLayout->addWidget(textManage);
493 infoCenterLayout->addWidget(textDevel);
494 infoCenterLayout->addWidget(textLicense);
495 infoCenterLayout->insertSpacing(2, 10); 477 infoCenterLayout->insertSpacing(2, 10);
496 infoCenterLayout->insertSpacing(4, 10); 478 infoCenterLayout->insertSpacing(4, 10);
497 infoCenterLayout->insertSpacing(6, 10); 479 infoCenterLayout->insertSpacing(6, 10);
498 infoCenterLayout->insertStretch(8, 10); 480 infoCenterLayout->insertStretch(8, 10);
499 481

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