diff options
author | Philip Kaufmann <phil.kaufmann@t-online.de> | 2013-04-14 19:50:15 +0200 |
---|---|---|
committer | Philip Kaufmann <phil.kaufmann@t-online.de> | 2013-04-14 19:53:27 +0200 |
commit | 41fdc1cad1777aeb4569c49a72d28b6a3b099093 (patch) | |
tree | 3b502bb4bdf8f42a5d63695f0c868ffa00f66da7 /src/qt | |
parent | d9d6c7d93653c0960e3d96e960f6f78b38ea3ea2 (diff) |
overviewpage: make some code Qt5 compatible
- that changes will be fine for Qt4 also
Diffstat (limited to 'src/qt')
-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); |