aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qtapplicationmanager
diff options
context:
space:
mode:
authorJarek Kobus <[email protected]>2025-01-09 09:37:35 +0100
committerJarek Kobus <[email protected]>2025-01-10 07:57:11 +0000
commit2b49d2b9d22ae8f821be31cb3479a9331fa807e0 (patch)
treeee568c55d1672b661b277b51bc13a0353a67a987 /src/plugins/qtapplicationmanager
parent4f271f497aa9d27e0c30c022f9a7a0336b762b75 (diff)
RunWorker: Remove RunWorker's qml channel getters
Get rid of qmlChannel() / usesQmlChannel() indirections. This is RunControl's responsibility, so use the corresponding methods of run control directly. Change-Id: I0681c66358cc0cf8bfcb8be4ea2dbe3dad949dff Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/qtapplicationmanager')
-rw-r--r--src/plugins/qtapplicationmanager/appmanagerruncontrol.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/qtapplicationmanager/appmanagerruncontrol.cpp b/src/plugins/qtapplicationmanager/appmanagerruncontrol.cpp
index fa865663459..bddc4806cea 100644
--- a/src/plugins/qtapplicationmanager/appmanagerruncontrol.cpp
+++ b/src/plugins/qtapplicationmanager/appmanagerruncontrol.cpp
@@ -64,14 +64,14 @@ static RunWorker *createInferiorRunner(RunControl *runControl, QmlDebugServicesP
cmd.addArg("debug-application");
- if (worker->usesDebugChannel() || worker->usesQmlChannel()) {
+ if (worker->usesDebugChannel() || runControl->usesQmlChannel()) {
QStringList debugArgs;
debugArgs.append(envVars.join(' '));
if (worker->usesDebugChannel())
debugArgs.append(QString("gdbserver :%1").arg(worker->debugChannel().port()));
- if (worker->usesQmlChannel()) {
+ if (runControl->usesQmlChannel()) {
const QString qmlArgs = qmlDebugCommandLineArguments(qmlServices,
- QString("port:%1").arg(worker->qmlChannel().port()), true);
+ QString("port:%1").arg(runControl->qmlChannel().port()), true);
debugArgs.append(QString("%program% %1 %arguments%") .arg(qmlArgs));
}
cmd.addArg(debugArgs.join(' '));
@@ -156,7 +156,7 @@ private:
setCloseMode(Debugger::KillAndExitMonitorAtClose);
if (isQmlDebugging())
- setQmlServer(qmlChannel());
+ setQmlServer(runControl()->qmlChannel());
if (isCppDebugging()) {
setUseExtendedRemote(false);