diff options
| author | Philip Kaufmann <[email protected]> | 2015-02-09 11:19:01 +0100 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2015-03-09 10:58:17 +0100 |
| commit | 8517e9709e883ef59603d56b45dd2e06f8b7c7d7 (patch) | |
| tree | 7534aee2b8a461e0ff470b9ad2ff95909ff26df4 /src/qt/clientmodel.h | |
| parent | Merge pull request #5858 (diff) | |
| download | discoin-8517e9709e883ef59603d56b45dd2e06f8b7c7d7.tar.xz discoin-8517e9709e883ef59603d56b45dd2e06f8b7c7d7.zip | |
[Qt] rework setNumBlocks to have blockDate as parameter
- reduces some functional overhead and simplifies the code
Diffstat (limited to 'src/qt/clientmodel.h')
| -rw-r--r-- | src/qt/clientmodel.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qt/clientmodel.h b/src/qt/clientmodel.h index 7b74728b2..214701810 100644 --- a/src/qt/clientmodel.h +++ b/src/qt/clientmodel.h @@ -6,6 +6,7 @@ #define BITCOIN_QT_CLIENTMODEL_H #include <QObject> +#include <QDateTime> 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); |