diff options
Diffstat (limited to 'src/qt/overviewpage.cpp')
-rw-r--r-- | src/qt/overviewpage.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qt/overviewpage.cpp b/src/qt/overviewpage.cpp index 528c93bdc1..ad2d682b7b 100644 --- a/src/qt/overviewpage.cpp +++ b/src/qt/overviewpage.cpp @@ -46,9 +46,10 @@ public: bool confirmed = index.data(TransactionTableModel::ConfirmedRole).toBool(); QVariant value = index.data(Qt::ForegroundRole); QColor foreground = option.palette.color(QPalette::Text); - if(qVariantCanConvert<QColor>(value)) + if(value.canConvert<QBrush>()) { - foreground = qvariant_cast<QColor>(value); + QBrush brush = qvariant_cast<QBrush>(value); + foreground = brush.color(); } painter->setPen(foreground); |