| 192 | } |
| 193 | |
| 194 | void 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 | |
| 211 | CreateWalletActivity::CreateWalletActivity(WalletController* wallet_controller, QWidget* parent_widget) |
| 212 | : WalletControllerActivity(wallet_controller, parent_widget) |
nothing calls this directly
no test coverage detected