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

Method saveCheckSetSelection

plugins/clazy/checksetselectionmanager.cpp:249–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249void CheckSetSelectionManager::saveCheckSetSelection(const CheckSetSelection& checkSetSelection) const
250{
251 const QString fileName = checkSetSelectionFilePath(checkSetSelection.id());
252 KConfig configFile(fileName, KConfig::SimpleConfig);
253
254 KConfigGroup formatConfigGroup = configFile.group(QStringLiteral("KDEVCZCS"));
255 formatConfigGroup.writeEntry("Version", "1.0");
256
257 KConfigGroup generalConfigGroup = configFile.group(QStringLiteral("General"));
258 generalConfigGroup.writeEntry("Name", checkSetSelection.name());
259
260 KConfigGroup layoutConfigGroup = configFile.group(QStringLiteral("Checks"));
261 layoutConfigGroup.writeEntry("Selection", checkSetSelection.selectionAsString());
262}
263
264void CheckSetSelectionManager::removeCheckSetSelection(const QString& checkSetSelectionId)
265{

Callers

nothing calls this directly

Calls 5

writeEntryMethod · 0.80
idMethod · 0.45
nameMethod · 0.45
selectionAsStringMethod · 0.45

Tested by

no test coverage detected