///////////////////////////////// Slots ///////////////////////////////////
| 271 | |
| 272 | ////////////////////////////////////// Slots /////////////////////////////////// |
| 273 | void |
| 274 | MultitaskController::onProgress(qreal progress, QString state) |
| 275 | { |
| 276 | CancellableTaskContext *ctx = this->findTask( |
| 277 | static_cast<CancellableTask *>(this->sender())); |
| 278 | |
| 279 | if (ctx != nullptr) { |
| 280 | ctx->setProgress(progress, state); |
| 281 | emit(taskProgress(ctx->index(), progress, state)); |
| 282 | } |
| 283 | } |
| 284 | |
| 285 | void |
| 286 | MultitaskController::onDone(void) |
nothing calls this directly
no test coverage detected