MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / showProgress

Method showProgress

src/qt/walletview.cpp:260–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260void WalletView::showProgress(const QString &title, int nProgress)
261{
262 if (nProgress == 0) {
263 progressDialog = new QProgressDialog(title, tr("Cancel"), 0, 100);
264 GUIUtil::PolishProgressDialog(progressDialog);
265 progressDialog->setWindowModality(Qt::ApplicationModal);
266 progressDialog->setAutoClose(false);
267 progressDialog->setValue(0);
268 } else if (nProgress == 100) {
269 if (progressDialog) {
270 progressDialog->close();
271 progressDialog->deleteLater();
272 progressDialog = nullptr;
273 }
274 } else if (progressDialog) {
275 if (progressDialog->wasCanceled()) {
276 getWalletModel()->wallet().abortRescan();
277 } else {
278 progressDialog->setValue(nProgress);
279 }
280 }
281}
282
283void WalletView::disableTransactionView(bool disable)
284{

Callers

nothing calls this directly

Calls 6

PolishProgressDialogFunction · 0.85
getWalletModelFunction · 0.85
abortRescanMethod · 0.80
setValueMethod · 0.45
closeMethod · 0.45
walletMethod · 0.45

Tested by

no test coverage detected