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. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
src/qt/walletview.cpp
CHANGED
|
@@ -14,6 +14,7 @@
|
|
| 14 |
#include <qt/receivecoinsdialog.h>
|
| 15 |
#include <qt/sendcoinsdialog.h>
|
| 16 |
#include <qt/signverifymessagedialog.h>
|
|
|
|
| 17 |
#include <qt/transactiontablemodel.h>
|
| 18 |
#include <qt/transactionview.h>
|
| 19 |
#include <qt/walletmodel.h>
|
|
@@ -190,6 +191,13 @@ void WalletView::gotoVerifyMessageTab(QString addr)
|
|
| 190 |
signVerifyMessageDialog->setAddress_VM(addr);
|
| 191 |
}
|
| 192 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 193 |
bool WalletView::handlePaymentRequest(const SendCoinsRecipient& recipient)
|
| 194 |
{
|
| 195 |
return sendCoinsPage->handlePaymentRequest(recipient);
|
|
|
|
| 14 |
#include <qt/receivecoinsdialog.h>
|
| 15 |
#include <qt/sendcoinsdialog.h>
|
| 16 |
#include <qt/signverifymessagedialog.h>
|
| 17 |
+
#include <qt/sweepdialog.h>
|
| 18 |
#include <qt/transactiontablemodel.h>
|
| 19 |
#include <qt/transactionview.h>
|
| 20 |
#include <qt/walletmodel.h>
|
|
|
|
| 191 |
signVerifyMessageDialog->setAddress_VM(addr);
|
| 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 |
+
|
| 201 |
bool WalletView::handlePaymentRequest(const SendCoinsRecipient& recipient)
|
| 202 |
{
|
| 203 |
return sendCoinsPage->handlePaymentRequest(recipient);
|