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

Method modulesByKeyValue

src/jsplugin/JSPluginManager.cpp:109–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109QList<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
124JSPluginModule *JSPluginManager::moduleByGUID(QString guid) const
125{

Callers 3

initPluginsMethod · 0.80
createEditorMenuMethod · 0.80

Calls 4

sectionMethod · 0.80
settingsMethod · 0.45
specMethod · 0.45
modulesMethod · 0.45

Tested by

no test coverage detected