Docker: Simplify (unused) settings page code

Change-Id: I57496f1f3150b91681724878772227ef25b65789
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
hjk
2022-06-16 15:49:36 +02:00
parent 644b51a699
commit dcd3d9e717

View File

@@ -82,14 +82,9 @@ void DockerSettings::updateImageList()
{ {
QtcProcess process; QtcProcess process;
process.setCommand({"docker", {"search", imageListFilter.value()}}); process.setCommand({"docker", {"search", imageListFilter.value()}});
connect(&process, &QtcProcess::finished, this, [&process, this] {
const QString data = QString::fromUtf8(process.readAllStandardOutput());
imageList.setValue(data);
});
process.start(); process.start();
process.waitForFinished(); process.waitForFinished();
imageList.setValue(process.cleanedStdOut());
} }
void DockerSettings::readSettings(const QSettings *settings) void DockerSettings::readSettings(const QSettings *settings)