| 16 | using namespace GammaRay; |
| 17 | |
| 18 | ProxyToolFactory::ProxyToolFactory(const PluginInfo &pluginInfo, QObject *parent) |
| 19 | : ProxyFactory<ToolFactory>(pluginInfo, parent) |
| 20 | { |
| 21 | const QStringList typesList = pluginInfo.supportedTypes(); |
| 22 | QVector<QByteArray> typesVector; |
| 23 | typesVector.reserve(typesList.size()); |
| 24 | for (auto it = typesList.constBegin(), end = typesList.constEnd(); it != end; ++it) |
| 25 | typesVector << (*it).toLatin1(); |
| 26 | setSupportedTypes(typesVector); |
| 27 | } |
| 28 | |
| 29 | bool ProxyToolFactory::isValid() const |
| 30 | { |
nothing calls this directly
no test coverage detected