From 02eec351b9a2f64de0dbb7088993f0a622c5561b Mon Sep 17 00:00:00 2001 From: selsta Date: Thu, 23 Apr 2020 03:13:13 +0200 Subject: src: fix qt 5.15 warnings --- src/libwalletqt/TransactionHistory.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/libwalletqt/TransactionHistory.cpp') diff --git a/src/libwalletqt/TransactionHistory.cpp b/src/libwalletqt/TransactionHistory.cpp index 902a3417..a6740e95 100644 --- a/src/libwalletqt/TransactionHistory.cpp +++ b/src/libwalletqt/TransactionHistory.cpp @@ -34,6 +34,7 @@ #include #include #include +#include bool TransactionHistory::transaction(int index, std::function callback) @@ -58,7 +59,11 @@ bool TransactionHistory::transaction(int index, std::function= QT_VERSION_CHECK(5, 14, 0) + QDateTime firstDateTime = QDate(2014, 4, 18).startOfDay(); +#else QDateTime firstDateTime = QDateTime(QDate(2014, 4, 18)); // the genesis block +#endif QDateTime lastDateTime = QDateTime::currentDateTime().addDays(1); // tomorrow (guard against jitter and timezones) emit refreshStarted(); @@ -143,7 +148,11 @@ bool TransactionHistory::TransactionHistory::locked() const TransactionHistory::TransactionHistory(Monero::TransactionHistory *pimpl, QObject *parent) : QObject(parent), m_pimpl(pimpl), m_minutesToUnlock(0), m_locked(false) { +#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) + m_firstDateTime = QDate(2014, 4, 18).startOfDay(); +#else m_firstDateTime = QDateTime(QDate(2014, 4, 18)); // the genesis block +#endif m_lastDateTime = QDateTime::currentDateTime().addDays(1); // tomorrow (guard against jitter and timezones) } -- cgit v1.2.3