MCPcopy Create free account
hub / github.com/ElementsProject/elements / showProgressDialog

Method showProgressDialog

src/qt/walletcontroller.cpp:194–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194void WalletControllerActivity::showProgressDialog(const QString& title_text, const QString& label_text)
195{
196 auto progress_dialog = new QProgressDialog(m_parent_widget);
197 progress_dialog->setAttribute(Qt::WA_DeleteOnClose);
198 connect(this, &WalletControllerActivity::finished, progress_dialog, &QWidget::close);
199
200 progress_dialog->setWindowTitle(title_text);
201 progress_dialog->setLabelText(label_text);
202 progress_dialog->setRange(0, 0);
203 progress_dialog->setCancelButton(nullptr);
204 progress_dialog->setWindowModality(Qt::ApplicationModal);
205 GUIUtil::PolishProgressDialog(progress_dialog);
206 // The setValue call forces QProgressDialog to start the internal duration estimation.
207 // See details in https://bugreports.qt.io/browse/QTBUG-47042.
208 progress_dialog->setValue(0);
209}
210
211CreateWalletActivity::CreateWalletActivity(WalletController* wallet_controller, QWidget* parent_widget)
212 : WalletControllerActivity(wallet_controller, parent_widget)

Callers

nothing calls this directly

Calls 2

PolishProgressDialogFunction · 0.85
setValueMethod · 0.45

Tested by

no test coverage detected