From 86e81ca3fc4f5759ff86501ff4a6aa08beee2cc5 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Thu, 8 Jul 2021 13:09:49 +0200 Subject: [PATCH] History: use monospace for txid column --- src/model/TransactionHistoryModel.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/model/TransactionHistoryModel.cpp b/src/model/TransactionHistoryModel.cpp index 0374cf1..2265a3e 100644 --- a/src/model/TransactionHistoryModel.cpp +++ b/src/model/TransactionHistoryModel.cpp @@ -123,6 +123,14 @@ QVariant TransactionHistoryModel::data(const QModelIndex &index, int role) const } } } + else if (role == Qt::FontRole) { + switch(index.column()) { + case Column::TxID: + { + result = ModelUtils::getMonospaceFont(); + } + } + } }); if (!found) {