mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-11 12:37:26 -04:00
Add estimated time countdown for locked balance
This commit is contained in:
@@ -17,6 +17,8 @@ class TransactionHistory : public QObject
|
||||
Q_PROPERTY(int count READ count)
|
||||
Q_PROPERTY(QDateTime firstDateTime READ firstDateTime NOTIFY firstDateTimeChanged)
|
||||
Q_PROPERTY(QDateTime lastDateTime READ lastDateTime NOTIFY lastDateTimeChanged)
|
||||
Q_PROPERTY(int minutesToUnlock READ minutesToUnlock)
|
||||
Q_PROPERTY(bool locked READ locked)
|
||||
|
||||
public:
|
||||
Q_INVOKABLE TransactionInfo *transaction(int index);
|
||||
@@ -26,6 +28,8 @@ public:
|
||||
quint64 count() const;
|
||||
QDateTime firstDateTime() const;
|
||||
QDateTime lastDateTime() const;
|
||||
quint64 minutesToUnlock() const;
|
||||
bool locked() const;
|
||||
|
||||
signals:
|
||||
void refreshStarted() const;
|
||||
@@ -45,6 +49,9 @@ private:
|
||||
mutable QList<TransactionInfo*> m_tinfo;
|
||||
mutable QDateTime m_firstDateTime;
|
||||
mutable QDateTime m_lastDateTime;
|
||||
mutable int m_minutesToUnlock;
|
||||
// history contains locked transfers
|
||||
mutable bool m_locked;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user