[PATCH 3 of 5] Updated certificate list/details layout

Wald Commits scm-commit at wald.intevation.org
Wed Jun 25 14:56:44 CEST 2014


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1403700703 -7200
# Branch trustbridge-refactor
# Node ID 7cd6602e3fa2d164de941c819af0deb581c8325c
# Parent  9c3e7754b76b1df504a85414dcb4164f5a926f11
Updated certificate list/details layout.

diff -r 9c3e7754b76b -r 7cd6602e3fa2 ui/certificatelistwidget.cpp
--- 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);
 }
 


More information about the Trustbridge-commits mailing list