]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
History: use monospace for txid column
authortobtoht <thotbot@protonmail.com>
Thu, 8 Jul 2021 11:09:49 +0000 (13:09 +0200)
committertobtoht <thotbot@protonmail.com>
Thu, 8 Jul 2021 11:09:49 +0000 (13:09 +0200)
src/model/TransactionHistoryModel.cpp

index 0374cf1791bcd50a773caadd325d0e666022b188..2265a3e97519109d3148b719b1ddf96823c14e6e 100644 (file)
@@ -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) {