X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fqt%2Foverviewpage.cpp;h=59cb0acb1f9fd0d4121ba9e138a72392f8c9495c;hb=7ac0ffc894b6a23aa2e3a1e0939a15fe95fe9eca;hp=898f9402699effef27c98b5f41eaaef5a2c592b1;hpb=1c4fc9052a444c114d9c1501d2c6d1305de650d0;p=novacoin.git diff --git a/src/qt/overviewpage.cpp b/src/qt/overviewpage.cpp index 898f940..59cb0ac 100644 --- a/src/qt/overviewpage.cpp +++ b/src/qt/overviewpage.cpp @@ -45,7 +45,11 @@ public: bool confirmed = index.data(TransactionTableModel::ConfirmedRole).toBool(); QVariant value = index.data(Qt::ForegroundRole); QColor foreground = option.palette.color(QPalette::Text); +#if QT_VERSION < 0x050000 if(qVariantCanConvert(value)) +#else + if(value.canConvert(QMetaType::QColor)) +#endif { foreground = qvariant_cast(value); }