| 129 | } |
| 130 | |
| 131 | Platform PluginsParser::platformForPlugin(const QString &name) const { |
| 132 | const auto end = std::end(platformMappings); |
| 133 | const auto result = |
| 134 | std::find_if(std::begin(platformMappings), end, |
| 135 | [&name] (const PlatformMapping &m) { |
| 136 | |
| 137 | return name == QLatin1String(m._pluginName); |
| 138 | }); |
| 139 | |
| 140 | return (result != end) ? result->_platform : Platform::UnknownPlatform; // "designer" |
| 141 | } |
| 142 | |
| 143 | QString PluginsParser::getPluginNameFromFile(const QString &baseNaem) const { |
| 144 |
nothing calls this directly
no outgoing calls
no test coverage detected