26 connect(
ui.buttonBox, SIGNAL(clicked(QAbstractButton *)),
36 ui.progressBar->setRange(0, 0);
37 ui.buttonBox->setStandardButtons(QDialogButtonBox::Cancel);
39 QDialog::setVisible(visible);
45 ui.lblStatus->setText(status);
51 ui.progressBar->setRange(0, total);
52 ui.progressBar->setValue(done);
66 ui.lblStatus->setText(tr(
"Unable to download bridges: %1").arg(error));
68 ui.progressBar->setRange(0, 1);
69 ui.progressBar->setValue(1);
71 ui.buttonBox->setStandardButtons(QDialogButtonBox::Cancel
72 | QDialogButtonBox::Retry
73 | QDialogButtonBox::Help);
79 int standardButton =
ui.buttonBox->standardButton(button);
80 if (standardButton == QDialogButtonBox::Retry) {
81 setStatus(tr(
"Retrying bridge request..."));
83 ui.buttonBox->setStandardButtons(QDialogButtonBox::Cancel);
85 QTimer::singleShot(1000,
this, SIGNAL(
retry()));