comparison ui/mainwindow.cpp @ 531:dec797c7230c

Fix usage of OU / O
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 29 Apr 2014 15:02:31 +0000
parents 3edbe1af2c85
children c84dc8f6d017
comparison
equal deleted inserted replaced
530:fb47bab4c71a 531:dec797c7230c
32 #ifndef APPNAME 32 #ifndef APPNAME
33 #define APPNAME "TrustBridge" 33 #define APPNAME "TrustBridge"
34 #endif 34 #endif
35 35
36 #define SERVER_URL "https://files.intevation.de:443" 36 #define SERVER_URL "https://files.intevation.de:443"
37 #define LIST_RESOURCE "/users/aheinecke/zertifikatsliste_1.txt" 37 #define LIST_RESOURCE "/users/aheinecke/zertifikatsliste.txt"
38 #define SW_RESOURCE "/users/aheinecke/zertifikatsliste_1.txt" 38 #define SW_RESOURCE "/users/aheinecke/zertifikatsliste.txt"
39 #ifdef Q_OS_WIN 39 #ifdef Q_OS_WIN
40 #define SW_RESOURCE_VERSION "/users/aheinecke/trustbridge-%1.exe" 40 #define SW_RESOURCE_VERSION "/users/aheinecke/trustbridge-%1.exe"
41 #else 41 #else
42 #define SW_RESOURCE_VERSION "/users/aheinecke/trustbridge-%1.sh" 42 #define SW_RESOURCE_VERSION "/users/aheinecke/trustbridge-%1.sh"
43 #endif 43 #endif
432 detailLabelLayout->addWidget(issuerOU); 432 detailLabelLayout->addWidget(issuerOU);
433 detailLabelLayout->addWidget(validFrom); 433 detailLabelLayout->addWidget(validFrom);
434 detailLabelLayout->addWidget(validTo); 434 detailLabelLayout->addWidget(validTo);
435 detailLabelLayout->addWidget(fingerprint); 435 detailLabelLayout->addWidget(fingerprint);
436 mSubjectCN = new QLabel(tr("")); 436 mSubjectCN = new QLabel(tr(""));
437 mSubjectOU = new QLabel(tr("")); 437 mSubjectO = new QLabel(tr(""));
438 mIssuerCN = new QLabel(tr("")); 438 mIssuerCN = new QLabel(tr(""));
439 mIssuerOU = new QLabel(tr("")); 439 mIssuerO = new QLabel(tr(""));
440 mValidFrom = new QLabel(tr("")); 440 mValidFrom = new QLabel(tr(""));
441 mValidTo = new QLabel(tr("")); 441 mValidTo = new QLabel(tr(""));
442 mFingerprint = new QLabel(tr("")); 442 mFingerprint = new QLabel(tr(""));
443 mFingerprint->setFont(QFont("DejaVu Sans Mono")); 443 mFingerprint->setFont(QFont("DejaVu Sans Mono"));
444 detailContentLayout->addWidget(mSubjectCN); 444 detailContentLayout->addWidget(mSubjectCN);
445 detailContentLayout->addWidget(mSubjectOU); 445 detailContentLayout->addWidget(mSubjectO);
446 detailContentLayout->addWidget(mIssuerCN); 446 detailContentLayout->addWidget(mIssuerCN);
447 detailContentLayout->addWidget(mIssuerOU); 447 detailContentLayout->addWidget(mIssuerO);
448 detailContentLayout->addWidget(mValidFrom); 448 detailContentLayout->addWidget(mValidFrom);
449 detailContentLayout->addWidget(mValidTo); 449 detailContentLayout->addWidget(mValidTo);
450 detailContentLayout->addWidget(mFingerprint); 450 detailContentLayout->addWidget(mFingerprint);
451 detailLayout->addLayout(detailLabelLayout); 451 detailLayout->addLayout(detailLabelLayout);
452 detailLayout->addLayout(detailContentLayout); 452 detailLayout->addLayout(detailContentLayout);
608 if (item == NULL) { 608 if (item == NULL) {
609 return; 609 return;
610 } 610 }
611 Certificate cert = item->data(CertificateItemDelegate::DataRole).value<Certificate>(); 611 Certificate cert = item->data(CertificateItemDelegate::DataRole).value<Certificate>();
612 mSubjectCN->setText(cert.subjectCN()); 612 mSubjectCN->setText(cert.subjectCN());
613 mSubjectOU->setText(cert.subjectOU()); 613 mSubjectO->setText(cert.subjectO());
614 mIssuerCN->setText(cert.issuerCN()); 614 mIssuerCN->setText(cert.issuerCN());
615 mIssuerOU->setText(cert.issuerO()); 615 mIssuerO->setText(cert.issuerO());
616 mValidFrom->setText(cert.validFrom().toString()); 616 mValidFrom->setText(cert.validFrom().toString());
617 mValidTo->setText(cert.validTo().toString()); 617 mValidTo->setText(cert.validTo().toString());
618 mFingerprint->setText(cert.fingerprint()); 618 mFingerprint->setText(cert.fingerprint());
619 } 619 }
620 620

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