| 209 | } |
| 210 | |
| 211 | void ProjectSourcePage::projectReceived(KJob* job) |
| 212 | { |
| 213 | if (job->error()) { |
| 214 | m_ui->creationProgress->setValue(0); |
| 215 | } else { |
| 216 | m_ui->creationProgress->setValue(m_ui->creationProgress->maximum()); |
| 217 | } |
| 218 | |
| 219 | reevaluateCorrection(); |
| 220 | m_ui->creationProgress->setFormat(QStringLiteral("%p%")); |
| 221 | } |
| 222 | |
| 223 | void ProjectSourcePage::reevaluateCorrection() |
| 224 | { |