MCPcopy Create free account
hub / github.com/KDE/kdevelop / imagesListFinished

Method imagesListFinished

plugins/docker/dockerplugin.cpp:73–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73void DockerPlugin::imagesListFinished(int code)
74{
75 if (code != 0)
76 return;
77
78 auto* process = qobject_cast<QProcess*>(sender());
79 Q_ASSERT(process);
80 QTextStream stream(process);
81 while(!stream.atEnd()) {
82 const QString line = stream.readLine();
83 const QStringList parts = line.split(QLatin1Char('\t'));
84
85 const QString tag = parts[0] == QLatin1String("<none>") ? parts[1] : parts[0];
86 ICore::self()->runtimeController()->addRuntimes(new DockerRuntime(tag));
87 }
88
89 process->deleteLater();
90 Q_EMIT imagesListed();
91}
92
93void DockerPlugin::runtimeChanged(KDevelop::IRuntime* newRuntime)
94{

Callers

nothing calls this directly

Calls 5

atEndMethod · 0.80
readLineMethod · 0.80
addRuntimesMethod · 0.80
runtimeControllerMethod · 0.80
splitMethod · 0.45

Tested by

no test coverage detected