MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / formatPluginOptions

Method formatPluginOptions

lib/extensionsystem/pluginmanager.cpp:642–656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

640*/
641
642void PluginManager::formatPluginOptions(QTextStream &str, int optionIndentation, int descriptionIndentation)
643{
644 typedef PluginSpec::PluginArgumentDescriptions PluginArgumentDescriptions;
645 // Check plugins for options
646 const PluginSpecSet::const_iterator pcend = d->pluginSpecs.constEnd();
647 for (PluginSpecSet::const_iterator pit = d->pluginSpecs.constBegin(); pit != pcend; ++pit) {
648 const PluginArgumentDescriptions pargs = (*pit)->argumentDescriptions();
649 if (!pargs.empty()) {
650 str << "\nPlugin: " << (*pit)->name() << '\n';
651 const PluginArgumentDescriptions::const_iterator acend = pargs.constEnd();
652 for (PluginArgumentDescriptions::const_iterator ait =pargs.constBegin(); ait != acend; ++ait)
653 formatOption(str, ait->name, ait->parameter, ait->description, optionIndentation, descriptionIndentation);
654 }
655 }
656}
657
658/*!
659 Formats the version of the plugin specs for command line help.

Callers

nothing calls this directly

Calls 4

formatOptionFunction · 0.85
argumentDescriptionsMethod · 0.80
emptyMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected