forked from qt-creator/qt-creator
added possiblity to keep the progress widget
- the Nokia Qt SDK UpdateInfo plugin progress should stay in the
progress view till the user clicks on it
- now the futureprogress knows the difference between:
KeepOnFinishTillUserInteraction and KeepOnFinish
Reviewed-by: con
This commit is contained in:
@@ -69,7 +69,11 @@ FutureProgress *ProgressView::addTask(const QFuture<void> &future,
|
||||
m_layout->insertWidget(0, progress);
|
||||
m_taskList.append(progress);
|
||||
progress->setType(type);
|
||||
progress->setKeepOnFinish(flags & ProgressManager::KeepOnFinish);
|
||||
if (flags.testFlag(ProgressManager::KeepOnFinish)) {
|
||||
progress->setKeepOnFinish(FutureProgress::KeepOnFinishTillUserInteraction);
|
||||
} else {
|
||||
progress->setKeepOnFinish(FutureProgress::DontKeepOnFinish);
|
||||
}
|
||||
connect(progress, SIGNAL(removeMe()), this, SLOT(slotRemoveTask()));
|
||||
return progress;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user