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

Method config

plugins/flatpak/flatpakruntime.cpp:274–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274QJsonObject FlatpakRuntime::config(const KDevelop::Path& path)
275{
276 QFile f(path.toLocalFile());
277 if (!f.open(QIODevice::ReadOnly)) {
278 qCWarning(FLATPAK) << "couldn't open" << path;
279 return {};
280 }
281
282 QJsonParseError error;
283 auto doc = QJsonDocument::fromJson(f.readAll(), &error);
284 if (error.error) {
285 qCWarning(FLATPAK) << "couldn't parse" << path << error.errorString();
286 return {};
287 }
288
289 return doc.object();
290}
291
292QJsonObject FlatpakRuntime::config() const
293{

Callers 15

ProjectManagerViewMethod · 0.45
~ProjectManagerViewMethod · 0.45
toggleHideTargetsMethod · 0.45
saveStateMethod · 0.45
restoreStateMethod · 0.45
startMethod · 0.45
configInferiorMethod · 0.45
execInferiorMethod · 0.45
testQListContainerMethod · 0.45
testBreakOnStartMethod · 0.45
testRemoteDebuggingMethod · 0.45

Calls 4

toLocalFileMethod · 0.80
objectMethod · 0.80
openMethod · 0.45
errorStringMethod · 0.45

Tested by 6

testQListContainerMethod · 0.36
testBreakOnStartMethod · 0.36
testRemoteDebuggingMethod · 0.36
testManualAttachMethod · 0.36
testRemoteDebugMethod · 0.36