MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / onProgress

Method onProgress

Suscan/MultitaskController.cpp:273–283  ·  view source on GitHub ↗

///////////////////////////////// Slots ///////////////////////////////////

Source from the content-addressed store, hash-verified

271
272////////////////////////////////////// Slots ///////////////////////////////////
273void
274MultitaskController::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
285void
286MultitaskController::onDone(void)

Callers

nothing calls this directly

Calls 3

findTaskMethod · 0.95
indexMethod · 0.80
setProgressMethod · 0.45

Tested by

no test coverage detected