From e3cea8582f1f860ba2a25bbfb174fbcbcd306c9a Mon Sep 17 00:00:00 2001 From: Ilya Kitaev Date: Sat, 8 Oct 2016 01:22:45 +0300 Subject: TransactionHistory: firstDateTime and lastDateTime properties --- src/libwalletqt/TransactionHistory.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/libwalletqt/TransactionHistory.h') diff --git a/src/libwalletqt/TransactionHistory.h b/src/libwalletqt/TransactionHistory.h index d7a7278e..ee05787a 100644 --- a/src/libwalletqt/TransactionHistory.h +++ b/src/libwalletqt/TransactionHistory.h @@ -3,6 +3,7 @@ #include #include +#include namespace Bitmonero { class TransactionHistory; @@ -14,6 +15,8 @@ class TransactionHistory : public QObject { Q_OBJECT Q_PROPERTY(int count READ count) + Q_PROPERTY(QDateTime firstDateTime READ firstDateTime NOTIFY firstDateTimeChanged) + Q_PROPERTY(QDateTime lastDateTime READ lastDateTime NOTIFY lastDateTimeChanged) public: Q_INVOKABLE TransactionInfo *transaction(int index); @@ -21,10 +24,14 @@ public: Q_INVOKABLE QList getAll() const; Q_INVOKABLE void refresh(); quint64 count() const; + QDateTime firstDateTime() const; + QDateTime lastDateTime() const; signals: void refreshStarted() const; void refreshFinished() const; + void firstDateTimeChanged() const; + void lastDateTimeChanged() const; public slots: @@ -37,6 +44,8 @@ private: Bitmonero::TransactionHistory * m_pimpl; mutable QList m_tinfo; + mutable QDateTime m_firstDateTime; + mutable QDateTime m_lastDateTime; }; -- cgit v1.2.3