1616#include < interfaces/handler.h>
1717#include < interfaces/wallet.h>
1818#include < wallet/coincontrol.h>
19+ #include < wallet/wallet.h>
1920
2021#include < memory>
2122#include < vector>
@@ -30,7 +31,6 @@ class WalletQmlModel : public QObject
3031 Q_PROPERTY (ActivityListModel* activityListModel READ activityListModel CONSTANT)
3132 Q_PROPERTY (CoinsListModel* coinsListModel READ coinsListModel CONSTANT)
3233 Q_PROPERTY (SendRecipientsListModel* recipients READ sendRecipientList CONSTANT)
33- Q_PROPERTY (WalletQmlModelTransaction* currentTransaction READ currentTransaction NOTIFY currentTransactionChanged)
3434 Q_PROPERTY (unsigned int targetBlocks READ feeTargetBlocks WRITE setFeeTargetBlocks NOTIFY feeTargetBlocksChanged)
3535 Q_PROPERTY (PaymentRequest* currentPaymentRequest READ currentPaymentRequest CONSTANT)
3636 Q_PROPERTY (bool isWalletLoaded READ isWalletLoaded NOTIFY walletIsLoadedChanged)
@@ -49,7 +49,6 @@ class WalletQmlModel : public QObject
4949 ActivityListModel* activityListModel () const { return m_activity_list_model; }
5050 CoinsListModel* coinsListModel () const { return m_coins_list_model; }
5151 SendRecipientsListModel* sendRecipientList () const { return m_send_recipients; }
52- WalletQmlModelTransaction* currentTransaction () const { return m_current_transaction; }
5352 Q_INVOKABLE bool prepareTransaction ();
5453 Q_INVOKABLE void sendTransaction ();
5554
@@ -81,7 +80,6 @@ class WalletQmlModel : public QObject
8180Q_SIGNALS:
8281 void nameChanged ();
8382 void balanceChanged ();
84- void currentTransactionChanged ();
8583 void feeTargetBlocksChanged ();
8684 void walletIsLoadedChanged ();
8785
@@ -93,7 +91,7 @@ class WalletQmlModel : public QObject
9391 ActivityListModel* m_activity_list_model{nullptr };
9492 CoinsListModel* m_coins_list_model{nullptr };
9593 SendRecipientsListModel* m_send_recipients{nullptr };
96- WalletQmlModelTransaction* m_current_transaction{nullptr };
94+ CTransactionRef m_current_transaction{nullptr };
9795 wallet::CCoinControl m_coin_control;
9896 bool m_is_wallet_loaded{false };
9997};
0 commit comments