changeset 651:7cd6602e3fa2 trustbridge-refactor

Updated certificate list/details layout.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 25 Jun 2014 14:51:43 +0200
parents 9c3e7754b76b
children f65503c1833b
files ui/certificatelistwidget.cpp
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ui/certificatelistwidget.cpp	Wed Jun 25 14:51:07 2014 +0200
+++ b/ui/certificatelistwidget.cpp	Wed Jun 25 14:51:43 2014 +0200
@@ -23,6 +23,7 @@
 void CertificateListWidget::setupGUI()
 {
     QHBoxLayout *mainLayout = new QHBoxLayout;
+    QVBoxLayout *detailMainLayout = new QVBoxLayout;
     mCertificateList = new QListWidget;
     mCertificateList->setFixedWidth(250);
     connect(mCertificateList,
@@ -33,7 +34,7 @@
     QHBoxLayout *detailLayout = new QHBoxLayout;
     QVBoxLayout *detailLabelLayout = new QVBoxLayout;
     QVBoxLayout *detailContentLayout = new QVBoxLayout;
-    QGroupBox *detailBox = new QGroupBox();
+    QGroupBox *detailBox = new QGroupBox(tr("Details"));
     QLabel *subjectCN = new QLabel(tr("Subject Common Name:"));
     QLabel *subjectOU = new QLabel(tr("Subject Organisation:"));
     QLabel *issuerCN = new QLabel(tr("Issuer Common Name:"));
@@ -66,9 +67,11 @@
     detailLayout->addLayout(detailLabelLayout);
     detailLayout->addLayout(detailContentLayout);
     detailBox->setLayout(detailLayout);
+    detailMainLayout->addWidget(detailBox);
+    detailMainLayout->addStretch(1);
 
     mainLayout->addWidget(mCertificateList);
-    mainLayout->addWidget(detailBox);
+    mainLayout->addLayout(detailMainLayout);
     this->setLayout(mainLayout);
 }
 

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