diff ui/administratorwindow.cpp @ 427:d08e39b913ee

Added about dialog content and open the dialog via administration app.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 17 Apr 2014 12:56:23 +0200
parents d7cda835abd6
children f07bc5de2a87
line wrap: on
line diff
--- a/ui/administratorwindow.cpp	Thu Apr 17 12:06:57 2014 +0200
+++ b/ui/administratorwindow.cpp	Thu Apr 17 12:56:23 2014 +0200
@@ -27,6 +27,7 @@
 #include "certificatetabledelegate.h"
 #include "createinstallerdialog.h"
 #include "createcertlistdialog.h"
+#include "aboutdialog.h"
 
 AdministratorWindow::AdministratorWindow() {
     setWindowTitle(tr("TrustBridge Administration"));
@@ -97,7 +98,7 @@
     QLabel *logo = new QLabel;
     logo->setBackgroundRole(QPalette::Base);
     logo->setPixmap(QPixmap::fromImage(*logoImage));
-    QLabel *title = new QLabel("<h2>" + tr("TrustBridge Adminstration") + "</h2>");
+    QLabel *title = new QLabel("<h2>" + tr("TrustBridge Administration") + "</h2>");
     QLabel *subTitle = new QLabel(
         tr("Management application of the BSI certificate installer"));
     headerTextLayout->addWidget(title);
@@ -164,6 +165,8 @@
         this, tr("Select certificate"), QDir::homePath(), "*.pem *.der");
     QList<Certificate> certs = Certificate::fromFileName(certFile);
     addToCertificateTable(certs);
+    certificateView->resizeColumnsToContents();
+    certificateView->setColumnWidth(0, 60);
 }
 
 void AdministratorWindow::removeCertificates()
@@ -189,19 +192,10 @@
     }
 }
 
-void AdministratorWindow::showSettings()
-{
-    qDebug() << "show settingsdialog";
-}
-
-void AdministratorWindow::showHelp()
-{
-    qDebug() << "show helpdialog";
-}
-
 void AdministratorWindow::showAbout()
 {
-    qDebug() << "show aboutdialog";
+    AboutDialog *dialog = new AboutDialog(this);
+    dialog->show();
 }
 
 void AdministratorWindow::createInstaller()

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