# HG changeset patch # User Raimund Renkert # Date 1395843770 -3600 # Node ID e35983a322d6ee87bdd657b083365f69523159f2 # Parent d587d075eddc4afeea4af2b106d339347be44ac4# Parent 825b42da1855cd628c5cc233a439203067d569c5 merged. diff -r 825b42da1855 -r e35983a322d6 ui/img/logo.png Binary file ui/img/logo.png has changed diff -r 825b42da1855 -r e35983a322d6 ui/mainwindow.cpp --- a/ui/mainwindow.cpp Wed Mar 26 13:32:47 2014 +0100 +++ b/ui/mainwindow.cpp Wed Mar 26 15:22:50 2014 +0100 @@ -14,6 +14,8 @@ #include #include #include +#include +#include // The amount of time in minutes stay silent if we have // something to say @@ -228,9 +230,23 @@ QWidget *base = new QWidget; QVBoxLayout *mainLayout = new QVBoxLayout; + QHBoxLayout *headerLayout = new QHBoxLayout; + QVBoxLayout *headerTextLayout = new QVBoxLayout; QHBoxLayout *certLayout = new QHBoxLayout; QHBoxLayout *bottomLayout = new QHBoxLayout; + QImage *logoImage = new QImage(":/img/logo.png"); + QLabel *logo = new QLabel; + logo->setBackgroundRole(QPalette::Base); + logo->setScaledContents(true); + logo->setPixmap(QPixmap::fromImage(*logoImage)); + QLabel *title = new QLabel("

" + tr("Certificate Installer") + "

"); + QLabel *subTitle = new QLabel("This Software installs and removes Certificates"); + headerTextLayout->addWidget(title); + headerTextLayout->addWidget(subTitle); + headerLayout->addWidget(logo); + headerLayout->addLayout(headerTextLayout); + QGroupBox *certBox = new QGroupBox(tr("Managed Certificates")); certificateList = new QListWidget; connect(certificateList, SIGNAL(itemClicked(QListWidgetItem*)), @@ -247,6 +263,7 @@ connect(update, SIGNAL(clicked()), this, SLOT(checkUpdates())); bottomLayout->insertStretch(0, 10); bottomLayout->addWidget(update); + mainLayout->addLayout(headerLayout); mainLayout->addWidget(certBox); mainLayout->addLayout(bottomLayout);