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

Method formatOptions

lib/extensionsystem/pluginmanager.cpp:616–636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614*/
615
616void PluginManager::formatOptions(QTextStream &str, int optionIndentation, int descriptionIndentation)
617{
618 formatOption(str, QLatin1String(OptionsParser::LOAD_OPTION),
619 QLatin1String("plugin"), QLatin1String("Load <plugin>"),
620 optionIndentation, descriptionIndentation);
621 formatOption(str, QLatin1String(OptionsParser::NO_LOAD_OPTION),
622 QLatin1String("plugin"), QLatin1String("Do not load <plugin>"),
623 optionIndentation, descriptionIndentation);
624 formatOption(str, QLatin1String(OptionsParser::PROFILE_OPTION),
625 QString(), QLatin1String("Profile plugin loading"),
626 optionIndentation, descriptionIndentation);
627#ifdef WITH_TESTS
628 formatOption(str, QString::fromLatin1(OptionsParser::TEST_OPTION)
629 + QLatin1String(" <plugin>[,testfunction[:testdata]]..."), QString(),
630 QLatin1String("Run plugin's tests (by default a separate settings path is used)"),
631 optionIndentation, descriptionIndentation);
632 formatOption(str, QString::fromLatin1(OptionsParser::TEST_OPTION) + QLatin1String(" all"),
633 QString(), QLatin1String("Run tests from all plugins"),
634 optionIndentation, descriptionIndentation);
635#endif
636}
637
638/*!
639 Formats the plugin options of the plugin specs for command line help.

Callers

nothing calls this directly

Calls 2

formatOptionFunction · 0.85
QStringClass · 0.50

Tested by

no test coverage detected