Implement ProcessLauncherImpl::program() getter

It returns the command stored when starting the process.

Change-Id: If90a3a54f80bc020e043045378caf2ffb603b746
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2021-07-09 16:41:20 +02:00
parent f341107c9f
commit 1a98fe33db

View File

@@ -309,7 +309,7 @@ public:
QProcess::ProcessChannel readChannel() const override { QTC_CHECK(false); return QProcess::StandardOutput; }
qint64 bytesAvailable() const override { QTC_CHECK(false); return 0; }
QString program() const override { QTC_CHECK(false); return {}; }
QString program() const override { return m_command; }
QProcess::ProcessError error() const override { return m_error; }
QProcess::ProcessState state() const override { return m_state; }
qint64 processId() const override { QTC_CHECK(false); return 0; }