aboutsummaryrefslogtreecommitdiff
path: root/src/qt/clientmodel.h
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2015-02-09 11:19:01 +0100
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2015-03-09 10:58:17 +0100
commit8517e9709e883ef59603d56b45dd2e06f8b7c7d7 (patch)
tree7534aee2b8a461e0ff470b9ad2ff95909ff26df4 /src/qt/clientmodel.h
parent513e0252391688b919f1b08980c5759a515c341b (diff)
downloadbitcoin-8517e9709e883ef59603d56b45dd2e06f8b7c7d7.tar.xz
[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.h5
1 files changed, 3 insertions, 2 deletions
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 <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);