File tree 4 files changed +46
-1
lines changed
4 files changed +46
-1
lines changed Original file line number Diff line number Diff line change @@ -45,4 +45,4 @@ OptionPopup {
45
45
text: qsTr (" Multiple Recipients" )
46
46
}
47
47
}
48
- }
48
+ }
Original file line number Diff line number Diff line change @@ -204,3 +204,13 @@ std::vector<COutPoint> WalletQmlModel::listSelectedCoins() const
204
204
{
205
205
return m_coin_control.ListSelected ();
206
206
}
207
+
208
+ int WalletQmlModel::recipientIndex () const
209
+ {
210
+ return 1 ;
211
+ }
212
+
213
+ int WalletQmlModel::recipientsCount () const
214
+ {
215
+ return 1 ;
216
+ }
Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ class WalletQmlModel : public QObject
28
28
Q_PROPERTY (CoinsListModel* coinsListModel READ coinsListModel CONSTANT)
29
29
Q_PROPERTY (SendRecipient* sendRecipient READ sendRecipient CONSTANT)
30
30
Q_PROPERTY (WalletQmlModelTransaction* currentTransaction READ currentTransaction NOTIFY currentTransactionChanged)
31
+ Q_PROPERTY (int recipientIndex READ recipientIndex NOTIFY recipientIndexChanged)
32
+ Q_PROPERTY (int recipientsCount READ recipientsCount NOTIFY recipientsCountChanged)
31
33
32
34
public:
33
35
WalletQmlModel (std::unique_ptr<interfaces::Wallet> wallet, QObject* parent = nullptr );
@@ -64,10 +66,15 @@ class WalletQmlModel : public QObject
64
66
bool isSelectedCoin (const COutPoint& output);
65
67
std::vector<COutPoint> listSelectedCoins () const ;
66
68
69
+ int recipientIndex () const ;
70
+ int recipientsCount () const ;
71
+
67
72
Q_SIGNALS:
68
73
void nameChanged ();
69
74
void balanceChanged ();
70
75
void currentTransactionChanged ();
76
+ void recipientIndexChanged ();
77
+ void recipientsCountChanged ();
71
78
72
79
private:
73
80
std::unique_ptr<interfaces::Wallet> m_wallet;
Original file line number Diff line number Diff line change @@ -81,6 +81,34 @@ PageStack {
81
81
}
82
82
}
83
83
84
+ RowLayout {
85
+ id: selectAndAddRecipients
86
+ Layout .fillWidth : true
87
+ Layout .topMargin : 10
88
+ Layout .bottomMargin : 10
89
+ visible: settings .multipleRecipientsEnabled
90
+
91
+ NavButton {
92
+ iconSource: " image://images/caret-left"
93
+ }
94
+
95
+ NavButton {
96
+ iconSource: " image://images/caret-right"
97
+ }
98
+
99
+ CoreText {
100
+ id: selectAndAddRecipientsLabel
101
+ text: qsTr (" Recipient %1 of %2" ).arg (wallet .recipientIndex ).arg (wallet .recipientsCount )
102
+ font .pixelSize : 18
103
+ color: Theme .color .neutral9
104
+ }
105
+ }
106
+
107
+ Separator {
108
+ visible: settings .multipleRecipientsEnabled
109
+ Layout .fillWidth : true
110
+ }
111
+
84
112
LabeledTextInput {
85
113
id: address
86
114
Layout .fillWidth : true
You can’t perform that action at this time.
0 commit comments