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

Method predefinedStyle

kdevplatform/interfaces/isourceformatter.cpp:169–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169SourceFormatterStyle ISourceFormatter::predefinedStyle(const QString& name) const
170{
171 const auto styles = predefinedStyles();
172 const auto it = std::find_if(styles.cbegin(), styles.cend(), [&name](const SourceFormatterStyle& style) {
173 return style.name() == name;
174 });
175 return it == styles.cend() ? SourceFormatterStyle{name} : *it;
176}
177
178QString ISourceFormatter::optionMapToString(const QMap<QString, QVariant> &map)
179{

Callers 1

styleCaptionMethod · 0.45

Calls 1

nameMethod · 0.45

Tested by

no test coverage detected