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