void GenericSchedulerThread::onWatcherTaskAbortedEmitted() { if (!_imp->blockingOperationWatcher) { return; } _imp->blockingOperationWatcher.reset(); Q_EMIT taskAborted(); }
void LabelingModel::startIconTask() { //GGDBGM("starting IconTask." << endl); // shared pointer IconTaskCtxPtr ctxp(new IconTaskCtx( colors.size(), full_labels, labels, iconSize, applyROI, colors)); assert(NULL == iconTaskp); iconTaskp = new IconTask(ctxp,this); connect(iconTaskp, SIGNAL(finished()), this, SLOT(resetIconTaskPointer())); connect(iconTaskp, SIGNAL(finished()), iconTaskp, SLOT(deleteLater())); connect(iconTaskp, SIGNAL(taskAborted()), this, SLOT(processIconTaskAborted())); connect(iconTaskp, SIGNAL(labelIconsComputed(const QVector<QImage>&)), this, SLOT(processLabelIconsComputed(const QVector<QImage>&))); iconTaskp->start(); }