diff ui/certificatetablemodel.cpp @ 397:8752aae8aad8

Set DejaVu Sans Mono as font for fingerprint column.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 15 Apr 2014 16:46:13 +0200
parents 26651cc0cc47
children 17e1c8f37d72
line wrap: on
line diff
--- a/ui/certificatetablemodel.cpp	Tue Apr 15 16:45:37 2014 +0200
+++ b/ui/certificatetablemodel.cpp	Tue Apr 15 16:46:13 2014 +0200
@@ -1,5 +1,7 @@
 #include "certificatetablemodel.h"
 
+#include <QFont>
+
 CertificateTabelModel::CertificateTabelModel(QObject *parent)
     : QAbstractTableModel(parent)
 {
@@ -69,6 +71,10 @@
         Certificate cert = certificates.at(index.row());
         return cert.isEditable();
     }
+    if (role == Qt::FontRole && index.column() == 7) {
+        QFont block("DejaVu Sans Mono");
+        return block;
+    }
 
     return QVariant();
 }

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