v31.1-roots.1 · Commit 6: [PATCH 06/17] feat(wallet): preserve Roots signing and spend controls on v31
src/qt/walletview.cpp
Before: src/qt/walletview.cpp · After: src/qt/walletview.cpp
File metadata
index 9f6084c6169b3a39178d9c3fa9d54fa4ffc1739b..2d23a6eee8cc65a7f7c8508a108854c8b179aff5 100644
Download original patch · Release notes
Diff rows 1–20 of 20. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.
src/qt/walletview.cpp
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
#include <qt/receivecoinsdialog.h>
|
|
15
15
|
#include <qt/sendcoinsdialog.h>
|
|
16
16
|
#include <qt/signverifymessagedialog.h>
|
|
17
|
+
#include <qt/sweepdialog.h>
|
|
17
18
|
#include <qt/transactiontablemodel.h>
|
|
18
19
|
#include <qt/transactionview.h>
|
|
19
20
|
#include <qt/walletmodel.h>
|
|
@@ -190,6 +191,13 @@ void WalletView::gotoVerifyMessageTab(QString addr)
|
|
|
190
191
|
signVerifyMessageDialog->setAddress_VM(addr);
|
|
191
192
|
}
|
|
192
193
|
|
|
194
|
+
void WalletView::sweepPrivateKey()
|
|
195
|
+
{
|
|
196
|
+
auto* dialog = new SweepDialog(walletModel, this);
|
|
197
|
+
dialog->setAttribute(Qt::WA_DeleteOnClose);
|
|
198
|
+
dialog->show();
|
|
199
|
+
}
|
|
200
|
+
|
|
193
201
|
bool WalletView::handlePaymentRequest(const SendCoinsRecipient& recipient)
|
|
194
202
|
{
|
|
195
203
|
return sendCoinsPage->handlePaymentRequest(recipient);
|