diff options
author | Jarek Kobus <[email protected]> | 2025-03-04 11:46:30 +0100 |
---|---|---|
committer | Jarek Kobus <[email protected]> | 2025-03-06 09:00:45 +0000 |
commit | 1969c7e2c8797ee84b6ae64e4b8030f0402683c9 (patch) | |
tree | f94f71e131e071315b9286e484990b19fc78b873 /src/plugins/qtapplicationmanager | |
parent | 0445f9d2a219721c66e2bb816eefbe1b4799ad2c (diff) |
RunWorker: Use postMessage instead of appendMessage
Limit the usage of RunWorker::appendMessage() and use
RunControl::postMessage() instead, as the RunWorker class
is going to disappear in the long term.
Task-number: QTCREATORBUG-29168
Change-Id: I383da81d7a6d33ec32becd502b28be33bb62e0de
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/qtapplicationmanager')
-rw-r--r-- | src/plugins/qtapplicationmanager/appmanagerruncontrol.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/qtapplicationmanager/appmanagerruncontrol.cpp b/src/plugins/qtapplicationmanager/appmanagerruncontrol.cpp index 7621100003f..312bb6d0e94 100644 --- a/src/plugins/qtapplicationmanager/appmanagerruncontrol.cpp +++ b/src/plugins/qtapplicationmanager/appmanagerruncontrol.cpp @@ -95,8 +95,8 @@ static RunWorker *createInferiorRunner(RunControl *runControl, QmlDebugServicesP worker->setProcessMode(ProcessMode::Writer); worker->setCommandLine(cmd); - worker->appendMessage(Tr::tr("Starting Application Manager debugging..."), NormalMessageFormat); - worker->appendMessage(Tr::tr("Using: %1.").arg(cmd.toUserOutput()), NormalMessageFormat); + runControl->postMessage(Tr::tr("Starting Application Manager debugging..."), NormalMessageFormat); + runControl->postMessage(Tr::tr("Using: %1.").arg(cmd.toUserOutput()), NormalMessageFormat); }); return worker; } @@ -109,8 +109,8 @@ public: setProducer([](RunControl *runControl) { auto worker = new ProcessRunner(runControl); worker->setId("ApplicationManagerPlugin.Run.TargetRunner"); - QObject::connect(worker, &RunWorker::stopped, worker, [worker, runControl] { - worker->appendMessage( + QObject::connect(worker, &RunWorker::stopped, worker, [runControl] { + runControl->postMessage( Tr::tr("%1 exited.").arg(runControl->commandLine().toUserOutput()), OutputFormat::NormalMessageFormat); }); |