changeset 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 9e6a2c2033ed
files ui/certificatetablemodel.cpp
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
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/