From 064b6202fbf973bdd30b23c84f7fe094dce6e0e3 Mon Sep 17 00:00:00 2001 From: fekt Date: Thu, 13 Oct 2022 22:12:46 -0400 Subject: [PATCH] Icon for generate/mined --- src/txtablemodel.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/txtablemodel.cpp b/src/txtablemodel.cpp index c59b0c0..b213751 100644 --- a/src/txtablemodel.cpp +++ b/src/txtablemodel.cpp @@ -232,7 +232,13 @@ int TxTableModel::columnCount(const QModelIndex&) const return QVariant(icon.pixmap(16, 16)); } - // TODO: Maybe detect mining/coinbase reward and show mining icon + // Mined + if(this->getType(index.row()) == "generate"){ + QImage image = colorizeIcon(QIcon(":/icons/res/tx_mined.png"), color); + QIcon icon; + icon.addPixmap(QPixmap::fromImage(image)); + return QVariant(icon.pixmap(16, 16)); + } // Empty pixmap to make it align (old behavior) QPixmap p(16, 16);