From 2b49d2b9d22ae8f821be31cb3479a9331fa807e0 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Thu, 9 Jan 2025 09:37:35 +0100 Subject: 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 --- src/plugins/qtapplicationmanager/appmanagerruncontrol.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/plugins/qtapplicationmanager') 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); -- cgit v1.2.3