| 137 | } |
| 138 | |
| 139 | bool 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 | |
| 159 | bool OptionsParser::checkForNoLoadOption() |
| 160 | { |
nothing calls this directly
no test coverage detected