aboutsummaryrefslogtreecommitdiff
path: root/src/qt/overviewpage.cpp
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2013-04-14 19:50:15 +0200
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2013-04-14 19:53:27 +0200
commit41fdc1cad1777aeb4569c49a72d28b6a3b099093 (patch)
tree3b502bb4bdf8f42a5d63695f0c868ffa00f66da7 /src/qt/overviewpage.cpp
parentd9d6c7d93653c0960e3d96e960f6f78b38ea3ea2 (diff)
downloadbitcoin-41fdc1cad1777aeb4569c49a72d28b6a3b099093.tar.xz
overviewpage: make some code Qt5 compatible
- that changes will be fine for Qt4 also
Diffstat (limited to 'src/qt/overviewpage.cpp')
-rw-r--r--src/qt/overviewpage.cpp5
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);