forked from qt-creator/qt-creator
Utils: Rename QtcProcess -> Process
Task-number: QTCREATORBUG-29102 Change-Id: Ibc264f9db6a32206e4097766ee3f7d0b35225a5c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -35,7 +35,7 @@ DockerApi *DockerApi::instance()
|
||||
|
||||
bool DockerApi::canConnect()
|
||||
{
|
||||
QtcProcess process;
|
||||
Process process;
|
||||
FilePath dockerExe = dockerClient();
|
||||
if (dockerExe.isEmpty() || !dockerExe.isExecutableFile())
|
||||
return false;
|
||||
@@ -43,7 +43,7 @@ bool DockerApi::canConnect()
|
||||
bool result = false;
|
||||
|
||||
process.setCommand(CommandLine(dockerExe, QStringList{"info"}));
|
||||
connect(&process, &QtcProcess::done, [&process, &result] {
|
||||
connect(&process, &Process::done, [&process, &result] {
|
||||
qCInfo(dockerApiLog) << "'docker info' result:\n" << qPrintable(process.allOutput());
|
||||
if (process.result() == ProcessResult::FinishedWithSuccess)
|
||||
result = true;
|
||||
|
||||
Reference in New Issue
Block a user