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

Method writeEntry

kdevplatform/shell/sourceformatterconfig.h:61–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59
60 template<class Style>
61 static void writeEntry(KConfigGroup& sourceFormatterConfig, const QMimeType& mimeType, const QString& formatterName,
62 const Style* style)
63 {
64 if (style) {
65 QString entry = formatterName + delimiter + style->name();
66 sourceFormatterConfig.writeEntry(mimeType.name(), std::move(entry));
67 } else {
68 sourceFormatterConfig.deleteEntry(mimeType.name());
69 }
70 }
71
72private:
73 static constexpr QLatin1String delimiter{"||", 2};

Callers 15

saveMethod · 0.80
saveMethod · 0.80
generateBreakpointConfigFunction · 0.80
initMethod · 0.80
VariableWidgetMethod · 0.80
saveToConfigurationMethod · 0.80
saveSettingsMethod · 0.80
~ProjectSourcePageMethod · 0.80
writeNewProjectFileFunction · 0.80
initializeMethod · 0.80
loadPluginInternalMethod · 0.80
updateLoadedPluginsMethod · 0.80

Calls 1

nameMethod · 0.45

Tested by 15

generateBreakpointConfigFunction · 0.64
initMethod · 0.64
enableBuddiesMethod · 0.64
cloneSessionMethod · 0.64
readFromConfigMethod · 0.64
loadPluginMethod · 0.64
initMethod · 0.64
testQListContainerMethod · 0.64
testBreakOnStartMethod · 0.64
testRemoteDebuggingMethod · 0.64