ProjectExplorer: Use CommandLine instead of Runnable

Lighter and sufficient for all use cases.

Change-Id: Ic6749a1a9e3e6906ce71b87b237cc94a6d8a4cbf
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
hjk
2022-01-31 18:08:39 +01:00
parent b822b3f9e2
commit 2be0fc2537
6 changed files with 16 additions and 23 deletions

View File

@@ -58,12 +58,10 @@ class QnxPortsGatheringMethod : public PortsGatheringMethod
{
// TODO: The command is probably needlessly complicated because the parsing method
// used to be fixed. These two can now be matched to each other.
Runnable runnable(QAbstractSocket::NetworkLayerProtocol protocol) const override
CommandLine commandLine(QAbstractSocket::NetworkLayerProtocol protocol) const override
{
Q_UNUSED(protocol)
Runnable runnable;
runnable.command = {"netstat", {"-na"}};
return runnable;
return {"netstat", {"-na"}};
}
QList<Port> usedPorts(const QByteArray &output) const override