comparison ui/certificatetablemodel.cpp @ 378:31079bd54036

Add fingerprint to certificate
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 15 Apr 2014 12:36:22 +0200
parents 9731d28b95af
children 1220b741cd51
comparison
equal deleted inserted replaced
377:e3f825a7257e 378:31079bd54036
5 { 5 {
6 header.append(""); 6 header.append("");
7 header.append(tr("CN")); 7 header.append(tr("CN"));
8 header.append(tr("issued on")); 8 header.append(tr("issued on"));
9 header.append(tr("expires on")); 9 header.append(tr("expires on"));
10 header.append(tr("Fingerprint")); 10 header.append(tr("SHA1 Fingerprint"));
11 11
12 } 12 }
13 13
14 void CertificateTabelModel::addCertificate(const Certificate& certificate, 14 void CertificateTabelModel::addCertificate(const Certificate& certificate,
15 bool editable) 15 bool editable)
49 switch(index.column()) { 49 switch(index.column()) {
50 case 0: ret = cert.isInstallCert(); break; 50 case 0: ret = cert.isInstallCert(); break;
51 case 1: ret = cert.subjectCN(); break; 51 case 1: ret = cert.subjectCN(); break;
52 case 2: ret = cert.validFrom(); break; 52 case 2: ret = cert.validFrom(); break;
53 case 3: ret = cert.validTo(); break; 53 case 3: ret = cert.validTo(); break;
54 case 4: ret = "Fingerprint"; break; 54 case 4: ret = cert.fingerprint(); break;
55 default: ; 55 default: ;
56 } 56 }
57 return ret; 57 return ret;
58 } 58 }
59 if (role == Qt::UserRole) { 59 if (role == Qt::UserRole) {

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