comparison ui/certificatelistwidget.cpp @ 661:320a64d58e62

(UI) Updated English strings. Removed Issuer fields.
author Emanuel Schuetze <emanuel@intevation.de>
date Thu, 26 Jun 2014 15:59:34 +0200
parents 39f03316f675
children 973a7ce19658
comparison
equal deleted inserted replaced
660:392ec26de687 661:320a64d58e62
35 QVBoxLayout *detailLabelLayout = new QVBoxLayout; 35 QVBoxLayout *detailLabelLayout = new QVBoxLayout;
36 QVBoxLayout *detailContentLayout = new QVBoxLayout; 36 QVBoxLayout *detailContentLayout = new QVBoxLayout;
37 QGroupBox *detailBox = new QGroupBox(tr("Details")); 37 QGroupBox *detailBox = new QGroupBox(tr("Details"));
38 QLabel *subjectCN = new QLabel(tr("Subject Common Name:")); 38 QLabel *subjectCN = new QLabel(tr("Subject Common Name:"));
39 QLabel *subjectOU = new QLabel(tr("Subject Organisation:")); 39 QLabel *subjectOU = new QLabel(tr("Subject Organisation:"));
40 QLabel *issuerCN = new QLabel(tr("Issuer Common Name:"));
41 QLabel *issuerOU = new QLabel(tr("Issuer Organisation:"));
42 QLabel *validFrom = new QLabel(tr("Valid from:")); 40 QLabel *validFrom = new QLabel(tr("Valid from:"));
43 QLabel *validTo = new QLabel(tr("Valid to:")); 41 QLabel *validTo = new QLabel(tr("Valid to:"));
44 QLabel *fingerprint = new QLabel(tr("Fingerprint:")); 42 QLabel *fingerprint = new QLabel(tr("Fingerprint (SHA1):"));
45 detailLabelLayout->addWidget(subjectCN); 43 detailLabelLayout->addWidget(subjectCN);
46 detailLabelLayout->addWidget(subjectOU); 44 detailLabelLayout->addWidget(subjectOU);
47 detailLabelLayout->addWidget(issuerCN);
48 detailLabelLayout->addWidget(issuerOU);
49 detailLabelLayout->addWidget(validFrom); 45 detailLabelLayout->addWidget(validFrom);
50 detailLabelLayout->addWidget(validTo); 46 detailLabelLayout->addWidget(validTo);
51 detailLabelLayout->addWidget(fingerprint); 47 detailLabelLayout->addWidget(fingerprint);
52 mSubjectCN = new QLabel(tr("")); 48 mSubjectCN = new QLabel(tr(""));
53 mSubjectO = new QLabel(tr("")); 49 mSubjectO = new QLabel(tr(""));
54 mIssuerCN = new QLabel(tr(""));
55 mIssuerO = new QLabel(tr(""));
56 mValidFrom = new QLabel(tr("")); 50 mValidFrom = new QLabel(tr(""));
57 mValidTo = new QLabel(tr("")); 51 mValidTo = new QLabel(tr(""));
58 mFingerprint = new QLabel(tr("")); 52 mFingerprint = new QLabel(tr(""));
59 mFingerprint->setFont(QFont("DejaVu Sans Mono")); 53 mFingerprint->setFont(QFont("DejaVu Sans Mono"));
60 detailContentLayout->addWidget(mSubjectCN); 54 detailContentLayout->addWidget(mSubjectCN);
61 detailContentLayout->addWidget(mSubjectO); 55 detailContentLayout->addWidget(mSubjectO);
62 detailContentLayout->addWidget(mIssuerCN);
63 detailContentLayout->addWidget(mIssuerO);
64 detailContentLayout->addWidget(mValidFrom); 56 detailContentLayout->addWidget(mValidFrom);
65 detailContentLayout->addWidget(mValidTo); 57 detailContentLayout->addWidget(mValidTo);
66 detailContentLayout->addWidget(mFingerprint); 58 detailContentLayout->addWidget(mFingerprint);
67 detailLayout->addLayout(detailLabelLayout); 59 detailLayout->addLayout(detailLabelLayout);
68 detailLayout->addLayout(detailContentLayout); 60 detailLayout->addLayout(detailContentLayout);
185 return; 177 return;
186 } 178 }
187 Certificate cert = item->data(Qt::UserRole).value<Certificate>(); 179 Certificate cert = item->data(Qt::UserRole).value<Certificate>();
188 mSubjectCN->setText(cert.subjectCN()); 180 mSubjectCN->setText(cert.subjectCN());
189 mSubjectO->setText(cert.subjectO()); 181 mSubjectO->setText(cert.subjectO());
190 mIssuerCN->setText(cert.issuerCN());
191 mIssuerO->setText(cert.issuerO());
192 mValidFrom->setText(cert.validFrom().toString()); 182 mValidFrom->setText(cert.validFrom().toString());
193 mValidTo->setText(cert.validTo().toString()); 183 mValidTo->setText(cert.validTo().toString());
194 mFingerprint->setText(cert.fingerprint()); 184 mFingerprint->setText(cert.fingerprint());
195 } 185 }
196 186

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