Uniform ApplicationLauncher API: get rid of reportError()

Use existing error() signal instead.
Implement errorString() and processError() in non-local case.

Change-Id: Ibdd6cec19ffa5efa0dad330515988da80e86e35b
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2021-11-10 12:23:31 +01:00
parent 971b1b2269
commit 94c70d1933
5 changed files with 24 additions and 23 deletions

View File

@@ -1252,10 +1252,9 @@ void SimpleTargetRunner::doStart(const Runnable &runnable, const IDevice::ConstP
} else {
connect(&m_launcher, &ApplicationLauncher::reportError,
this, [this](const QString &msg) {
reportFailure(msg);
});
connect(&m_launcher, &ApplicationLauncher::error, this, [this] {
reportFailure(m_launcher.errorString());
});
connect(&m_launcher, &ApplicationLauncher::finished,
this, [this] {