aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppcheck
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2021-05-14 15:21:54 +0200
committerhjk <hjk@qt.io>2021-06-02 13:21:08 +0000
commit08040e4e94acba0c781b058ac5408955a4bc95fb (patch)
treed4ea954f7a175ff784b7b7e78f1a6f490e522d14 /src/plugins/cppcheck
parent0f535703aa9f68e7654547ca93c118196ad2a0bd (diff)
Utils: Move QProcess base to QtcProcessPrivate
Change-Id: I4c6811d42e051fadfcf32edb664ff3bc09e692e6 Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/cppcheck')
-rw-r--r--src/plugins/cppcheck/cppcheckrunner.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/plugins/cppcheck/cppcheckrunner.cpp b/src/plugins/cppcheck/cppcheckrunner.cpp
index 20cdf34af2..51ecc0bd71 100644
--- a/src/plugins/cppcheck/cppcheckrunner.cpp
+++ b/src/plugins/cppcheck/cppcheckrunner.cpp
@@ -49,13 +49,13 @@ CppcheckRunner::CppcheckRunner(CppcheckTool &tool) :
m_maxArgumentsLength = std::max(argMax.toInt(), m_maxArgumentsLength);
}
- connect(m_process, &QProcess::readyReadStandardOutput,
+ connect(m_process, &QtcProcess::readyReadStandardOutput,
this, &CppcheckRunner::readOutput);
- connect(m_process, &QProcess::readyReadStandardOutput,
+ connect(m_process, &QtcProcess::readyReadStandardOutput,
this, &CppcheckRunner::readError);
- connect(m_process, &QProcess::started,
+ connect(m_process, &QtcProcess::started,
this, &CppcheckRunner::handleStarted);
- connect(m_process, QOverload<int, QProcess::ExitStatus>::of(&QProcess::finished),
+ connect(m_process, &QtcProcess::finished,
this, &CppcheckRunner::handleFinished);
m_queueTimer.setSingleShot(true);
@@ -128,8 +128,7 @@ const Utils::FilePaths &CppcheckRunner::currentFiles() const
QString CppcheckRunner::currentCommand() const
{
- return m_process->program() + ' ' +
- m_process->arguments().join(' ');
+ return m_process->commandLine().toUserOutput();
}
void CppcheckRunner::checkQueued()