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

Method hasCustomOptions

kdevplatform/language/codegen/sourcefiletemplate.cpp:295–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295bool SourceFileTemplate::hasCustomOptions() const
296{
297 Q_D(const SourceFileTemplate);
298
299 Q_ASSERT(isValid());
300
301 KConfig templateConfig(d->descriptionFileName);
302 KConfigGroup cg(&templateConfig, QStringLiteral("General"));
303 bool hasOptions = d->archive->directory()->entries().contains(cg.readEntry("OptionsFile", "options.kcfg"));
304
305 qCDebug(LANGUAGE) << cg.readEntry("OptionsFile", "options.kcfg") << hasOptions;
306 return hasOptions;
307}
308
309QVector<SourceFileTemplate::ConfigOptionGroup> SourceFileTemplate::customOptions(TemplateRenderer* renderer) const
310{

Callers 3

customOptionsMethod · 0.80
previewTemplateMethod · 0.80
templateChosenMethod · 0.80

Calls 4

readEntryMethod · 0.80
isValidFunction · 0.50
containsMethod · 0.45
directoryMethod · 0.45

Tested by 1

customOptionsMethod · 0.64