forked from qt-creator/qt-creator
ShellCommand: De-virtualize addTask()
Provide executedAsync() signal instead. Change-Id: I8f04dc90875e5f27827ea553a9f23f41656cc4db Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -209,8 +209,7 @@ void ShellCommand::execute()
|
||||
|
||||
QFuture<void> task = runAsync(&ShellCommand::run, this);
|
||||
d->m_watcher.setFuture(task);
|
||||
if (!(d->m_flags & SuppressCommandLogging))
|
||||
addTask(task);
|
||||
emit executedAsync(task);
|
||||
}
|
||||
|
||||
void ShellCommand::abort()
|
||||
@@ -224,11 +223,6 @@ void ShellCommand::cancel()
|
||||
emit terminate();
|
||||
}
|
||||
|
||||
void ShellCommand::addTask(QFuture<void> &future)
|
||||
{
|
||||
Q_UNUSED(future)
|
||||
}
|
||||
|
||||
void ShellCommand::postRunCommand(const FilePath &workingDirectory)
|
||||
{
|
||||
Q_UNUSED(workingDirectory)
|
||||
|
||||
Reference in New Issue
Block a user