From 8517e9709e883ef59603d56b45dd2e06f8b7c7d7 Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Mon, 9 Feb 2015 11:19:01 +0100 Subject: [Qt] rework setNumBlocks to have blockDate as parameter - reduces some functional overhead and simplifies the code --- src/qt/clientmodel.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/qt/clientmodel.h') diff --git a/src/qt/clientmodel.h b/src/qt/clientmodel.h index 7b74728b26..214701810c 100644 --- a/src/qt/clientmodel.h +++ b/src/qt/clientmodel.h @@ -6,6 +6,7 @@ #define BITCOIN_QT_CLIENTMODEL_H #include +#include class AddressTableModel; class OptionsModel; @@ -15,7 +16,6 @@ class TransactionTableModel; class CWallet; QT_BEGIN_NAMESPACE -class QDateTime; class QTimer; QT_END_NAMESPACE @@ -73,6 +73,7 @@ private: PeerTableModel *peerTableModel; int cachedNumBlocks; + QDateTime cachedBlockDate; bool cachedReindexing; bool cachedImporting; @@ -83,7 +84,7 @@ private: signals: void numConnectionsChanged(int count); - void numBlocksChanged(int count); + void numBlocksChanged(int count, const QDateTime& blockDate); void alertsChanged(const QString &warnings); void bytesChanged(quint64 totalBytesIn, quint64 totalBytesOut); -- cgit v1.2.3