| 107 | } |
| 108 | |
| 109 | QList<JSPluginModule *> JSPluginManager::modulesByKeyValue(QString key, QString value) const |
| 110 | { |
| 111 | QList<JSPluginModule *> ret; |
| 112 | for (JSPlugin *pluginData : m_pluginDataCollection) { |
| 113 | QSettings *settings = pluginData->spec()->settings(); |
| 114 | for (JSPluginModule *moduleData : pluginData->modules()) { |
| 115 | QString section = moduleData->spec()->section(); |
| 116 | if (settings->value(section + "/" + key) == value) { |
| 117 | ret.push_back(moduleData); |
| 118 | } |
| 119 | } |
| 120 | } |
| 121 | return ret; |
| 122 | } |
| 123 | |
| 124 | JSPluginModule *JSPluginManager::moduleByGUID(QString guid) const |
| 125 | { |
no test coverage detected