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

Method checkForLoadOption

lib/extensionsystem/optionsparser.cpp:139–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139bool OptionsParser::checkForLoadOption()
140{
141 if (m_currentArg != QLatin1String(LOAD_OPTION))
142 return false;
143 if (nextToken(RequiredToken)) {
144 PluginSpec *spec = m_pmPrivate->pluginByName(m_currentArg);
145 if (!spec) {
146 if (m_errorString)
147 *m_errorString = QCoreApplication::translate("PluginManager",
148 "The plugin '%1' does not exist.")
149 .arg(m_currentArg);
150 m_hasError = true;
151 } else {
152 spec->setForceEnabled(true);
153 m_isDependencyRefreshNeeded = true;
154 }
155 }
156 return true;
157}
158
159bool OptionsParser::checkForNoLoadOption()
160{

Callers

nothing calls this directly

Calls 2

pluginByNameMethod · 0.80
setForceEnabledMethod · 0.80

Tested by

no test coverage detected