Mercurial > trustbridge
diff ui/administratorwindow.cpp @ 412:340b8759d005
Wording und icons in TrustBridge Administration main window.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 16 Apr 2014 17:21:54 +0200 |
parents | 17e1c8f37d72 |
children | b19290d6b148 |
line wrap: on
line diff
--- a/ui/administratorwindow.cpp Wed Apr 16 14:19:49 2014 +0000 +++ b/ui/administratorwindow.cpp Wed Apr 16 17:21:54 2014 +0200 @@ -29,6 +29,7 @@ #include "createcertlistdialog.h" AdministratorWindow::AdministratorWindow() { + setWindowTitle(tr("TrustBridge Administration")); QString path = QStandardPaths::locate( QStandardPaths::DataLocation, QString("certlist_last.txt")); certList.readList(path.toLocal8Bit()); @@ -76,7 +77,8 @@ QHBoxLayout *bottomLayout = new QHBoxLayout; // The certificate list - QGroupBox *certBox = new QGroupBox(tr("Managed Certificates")); + QGroupBox *certBox = new QGroupBox( + tr("All managed root certificates of the certificate list:")); certificateView = new QTableView; certificateModel = new CertificateTabelModel(); QSortFilterProxyModel *filterModel = new QSortFilterProxyModel(this); @@ -99,8 +101,9 @@ QLabel *logo = new QLabel; logo->setBackgroundRole(QPalette::Base); logo->setPixmap(QPixmap::fromImage(*logoImage)); - QLabel *title = new QLabel("<h2>" + tr("Administrator Application") + "</h2>"); - QLabel *subTitle = new QLabel("This Software creates a signed file containing certificates"); + QLabel *title = new QLabel("<h2>" + tr("TrustBridge Adminstration") + "</h2>"); + QLabel *subTitle = new QLabel( + tr("Management application of the BSI certificate installer")); headerTextLayout->addWidget(title); headerTextLayout->addWidget(subTitle); headerLayout->addWidget(logo); @@ -110,13 +113,13 @@ // The buttons. bottomLayout->setAlignment(Qt::AlignBottom); - saveButton = new QPushButton(tr("Save")); + saveButton = new QPushButton(QIcon(":/img/document-save.png"), tr("Save list")); connect(saveButton, SIGNAL(clicked()), this, SLOT(saveCertificateFile())); - loadButton = new QPushButton(tr("Load")); + loadButton = new QPushButton(QIcon(":/img/document-open.png"), tr("Load list")); connect(loadButton, SIGNAL(clicked()), this, SLOT(loadCertificateFile())); - addButton = new QPushButton(tr("Add")); + addButton = new QPushButton(QIcon(":/img/document-new.png"), tr("Add certificate")); connect(addButton, SIGNAL(clicked()), this, SLOT(addCertificates())); - removeButton = new QPushButton(tr("Remove")); + removeButton = new QPushButton(QIcon(":/img/document-close.png"), tr("Remove certificate")); removeButton->setEnabled(false); connect(removeButton, SIGNAL(clicked()), this, SLOT(removeCertificates())); bottomLayout->addWidget(saveButton);