diff options
| author | Ilya Kitaev <mbg033@gmail.com> | 2016-10-02 21:40:40 +0300 |
|---|---|---|
| committer | Ilya Kitaev <mbg033@gmail.com> | 2016-10-10 00:15:17 +0300 |
| commit | 0ff3fd32122a22d7c56a289faa6402351f425873 (patch) | |
| tree | e9eb7c5a38c5c67415217925079f5202ecbfaa95 /src/libwalletqt/TransactionInfo.h | |
| parent | bd8646dd194771a9ff39bc75530d169a6d570ef6 (diff) | |
| download | monzero-gui-0ff3fd32122a22d7c56a289faa6402351f425873.tar.gz monzero-gui-0ff3fd32122a22d7c56a289faa6402351f425873.tar.xz monzero-gui-0ff3fd32122a22d7c56a289faa6402351f425873.zip | |
added TransactionHistoryModel; renamings
Diffstat (limited to 'src/libwalletqt/TransactionInfo.h')
| -rw-r--r-- | src/libwalletqt/TransactionInfo.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/libwalletqt/TransactionInfo.h b/src/libwalletqt/TransactionInfo.h index 62c26e2f..4dabc5b4 100644 --- a/src/libwalletqt/TransactionInfo.h +++ b/src/libwalletqt/TransactionInfo.h @@ -10,8 +10,8 @@ class TransactionInfo : public QObject Q_PROPERTY(Direction direction READ direction) Q_PROPERTY(bool isPending READ isPending) Q_PROPERTY(bool isFailed READ isFailed) - Q_PROPERTY(quint64 amount READ amount) - Q_PROPERTY(quint64 fee READ fee) + Q_PROPERTY(QString amount READ amount) + Q_PROPERTY(QString fee READ fee) Q_PROPERTY(quint64 blockHeight READ blockHeight) Q_PROPERTY(QString hash READ hash) Q_PROPERTY(QString timestamp READ timestamp) @@ -23,6 +23,8 @@ public: Direction_Out = Bitmonero::TransactionInfo::Direction_Out }; + Q_ENUM(Direction) + // TODO: implement as separate class; // struct Transfer { @@ -30,11 +32,12 @@ public: // const uint64_t amount; // const std::string address; // }; + Direction direction() const; bool isPending() const; bool isFailed() const; - quint64 amount() const; - quint64 fee() const; + QString amount() const; + QString fee() const; quint64 blockHeight() const; //! transaction_id QString hash() const; @@ -51,4 +54,7 @@ private: Bitmonero::TransactionInfo * m_pimpl; }; +// in order to wrap it to QVariant +Q_DECLARE_METATYPE(TransactionInfo*) + #endif // TRANSACTIONINFO_H |
