| 113 | } |
| 114 | |
| 115 | bool ProgressDialog::handleImmediateResult(QDialog::DialogCode& result) |
| 116 | { |
| 117 | if (task->isFinished()) { |
| 118 | if (task->wasSuccessful()) { |
| 119 | result = QDialog::Accepted; |
| 120 | } else { |
| 121 | result = QDialog::Rejected; |
| 122 | } |
| 123 | return true; |
| 124 | } |
| 125 | return false; |
| 126 | } |
| 127 | |
| 128 | Task* ProgressDialog::getTask() |
| 129 | { |
nothing calls this directly
no test coverage detected