Uniform ApplicationLauncher API: get rid of remoteProcessStarted()

Use existing processStarted() signal instead.
Replace isRemoteRunning() with isLocal().

Change-Id: I58d0204888116c00e793fa43f969707013db06eb
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2021-11-09 17:54:01 +01:00
parent 02dbed75b4
commit 971b1b2269
5 changed files with 16 additions and 26 deletions

View File

@@ -1263,11 +1263,7 @@ void SimpleTargetRunner::doStart(const Runnable &runnable, const IDevice::ConstP
reportStopped();
});
connect(&m_launcher, &ApplicationLauncher::processStarted,
this, [this] {
appendMessage("Application launcher started", Utils::NormalMessageFormat);
// reportStarted();
});
connect(&m_launcher, &ApplicationLauncher::processStarted, this, &RunWorker::reportStarted);
connect(&m_launcher, &ApplicationLauncher::processExited,
this, [this] {
@@ -1275,11 +1271,6 @@ void SimpleTargetRunner::doStart(const Runnable &runnable, const IDevice::ConstP
reportStopped();
});
connect(&m_launcher, &ApplicationLauncher::remoteProcessStarted,
this, [this] {
reportStarted();
});
connect(&m_launcher, &ApplicationLauncher::appendMessage, this, &RunWorker::appendMessage);
m_launcher.start(runnable, device);