| 640 | */ |
| 641 | |
| 642 | void 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. |
nothing calls this directly
no test coverage detected