From 62dff704c86db38db345e09a60f96ac691ed4c0c Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 29 Oct 2024 15:27:14 +0100 Subject: [PATCH] ProjectExplorer: Add RunControl::setQmlChannel() There's no working portsgatherer for Android yet, need a way to fill it "the old way". Change-Id: I5cd7dfa6a1a31a2cbcb41af0914d7b7d82c9c94e Reviewed-by: Christian Kandeler --- src/plugins/projectexplorer/runcontrol.cpp | 5 +++++ src/plugins/projectexplorer/runcontrol.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/plugins/projectexplorer/runcontrol.cpp b/src/plugins/projectexplorer/runcontrol.cpp index 62b11f11570..1a2f9b4ba72 100644 --- a/src/plugins/projectexplorer/runcontrol.cpp +++ b/src/plugins/projectexplorer/runcontrol.cpp @@ -688,6 +688,11 @@ QUrl RunControl::qmlChannel() const return d->qmlChannel; } +void RunControl::setQmlChannel(const QUrl &channel) +{ + d->qmlChannel = channel; +} + void RunControl::requestPerfChannel() { d->enablePortsGatherer(); diff --git a/src/plugins/projectexplorer/runcontrol.h b/src/plugins/projectexplorer/runcontrol.h index 3003e83fef0..6967ef35d09 100644 --- a/src/plugins/projectexplorer/runcontrol.h +++ b/src/plugins/projectexplorer/runcontrol.h @@ -253,6 +253,8 @@ public: void requestQmlChannel(); bool usesQmlChannel() const; QUrl qmlChannel() const; + // FIXME: Don't use. Convert existing users to portsgatherer. + void setQmlChannel(const QUrl &channel); void requestPerfChannel(); bool usesPerfChannel() const;