changeset 426:d7cda835abd6

Some wording and Layout in TrustBridge Administration.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 17 Apr 2014 12:06:57 +0200
parents 81cf25402cb0
children d08e39b913ee
files ui/administratorwindow.cpp ui/createcertlistdialog.cpp ui/createinstallerdialog.cpp
diffstat 3 files changed, 9 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/ui/administratorwindow.cpp	Thu Apr 17 08:55:16 2014 +0000
+++ b/ui/administratorwindow.cpp	Thu Apr 17 12:06:57 2014 +0200
@@ -73,7 +73,7 @@
 
     // The certificate list
     QGroupBox *certBox = new QGroupBox(
-        tr("All managed root certificates of the certificate list:"));
+        tr("All managed root certificates of the certificate list: "));
     certificateView = new QTableView;
     certificateModel = new CertificateTabelModel();
     QSortFilterProxyModel *filterModel = new QSortFilterProxyModel(this);
@@ -81,6 +81,7 @@
     CertificateTableDelegate *delegate = new CertificateTableDelegate(certificateView);
     certificateView->setModel(filterModel);
     certificateView->setItemDelegate(delegate);
+    certificateView->horizontalHeader()->setStretchLastSection(true);
     certificateView->resizeColumnsToContents();
     certificateView->setColumnWidth(0, 60);
     certificateView->setSelectionBehavior(QAbstractItemView::SelectRows);
@@ -139,7 +140,7 @@
     QString path = QStandardPaths::locate(
         QStandardPaths::DataLocation, QString("certlist_last.txt"));
     QString certFile = QFileDialog::getOpenFileName(
-        this, tr("Select certificate file"), path, "*.txt");
+        this, tr("Select certificate list file"), path, "*.txt");
     qDebug() << "selected: " + certFile;
     certList.readList(certFile.toLocal8Bit().constData());
     if (!certList.isValid()) {
--- a/ui/createcertlistdialog.cpp	Thu Apr 17 08:55:16 2014 +0000
+++ b/ui/createcertlistdialog.cpp	Thu Apr 17 12:06:57 2014 +0200
@@ -37,7 +37,7 @@
 
     QLabel *header = new QLabel("<h3>" + tr("Save certificate list") + "</h3>");
     QLabel *description = new QLabel(
-        tr("Save all managed root certificates in a new, signed certificate list"));
+        tr("Save all managed root certificates in a new, signed certificate list."));
     headerSubLayout->insertSpacing(0, 40);
     headerSubLayout->addWidget(description);
     QFrame *headerSeparator = new QFrame();
@@ -64,10 +64,12 @@
     connect(saveSelect, SIGNAL(clicked()), this, SLOT(openSaveLocation()));
     saveSelect->setFixedWidth(30);
 
-    QString footerText = tr("In addition, each certificate list will be saved"
+    QString footerText = tr("In addition, each certificate list will be saved "
         "automatically in the archive directory:\n");
     // TODO print out the path, not the displayName.
-    footerText.append(QStandardPaths::displayName(QStandardPaths::DataLocation));
+    footerText.append(QStandardPaths::writableLocation(
+        QStandardPaths::DataLocation));
+    //footerText.append(QStandardPaths::displayName(QStandardPaths::DataLocation));
     QLabel *footer = new QLabel(footerText);
     saveLayout->addWidget(saveLabel);
     saveLayout->addWidget(mSaveFile);
--- a/ui/createinstallerdialog.cpp	Thu Apr 17 08:55:16 2014 +0000
+++ b/ui/createinstallerdialog.cpp	Thu Apr 17 12:06:57 2014 +0200
@@ -37,7 +37,7 @@
 
     QLabel *header = new QLabel("<h3>" + tr("Create binary installer") + "</h3>");
     QLabel *description = new QLabel(
-        tr("Create and signed a TrustBridge binary installer from source."));
+        tr("Create and sign a TrustBridge binary installer from source."));
     headerSubLayout->insertSpacing(0, 40);
     headerSubLayout->addWidget(description);
     QFrame *headerSeparator = new QFrame();

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