v29.4-roots.4 · Commit 24: [PATCH 24/37] feat(qt): add guarded private key sweep dialog
src/qt/walletview.cpp
Before: src/qt/walletview.cpp · After: src/qt/walletview.cpp
File metadata
index 4926d1e80b8e542ece446e60a1b063731b3b25be..513e713b2c22ed5ff3474bab6f795864a29a1219 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);
|