MCPcopy Create free account
hub / github.com/KDE/kdevelop / info

Function info

kdevplatform/shell/loadedpluginsdialog.cpp:230–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228
229private Q_SLOTS:
230 void info()
231 {
232 auto *m = static_cast<PluginsModel*>(itemView()->model());
233 KDevelop::IPlugin *p = m->pluginForIndex(focusedIndex());
234 if (p) {
235 const KPluginMetaData pluginInfo = ::pluginInfo(p);
236 if (!pluginInfo.name().isEmpty()) { // Be sure the about data is not completely empty
237 KDevelop::ScopedDialog<KAboutPluginDialog> aboutPlugin(pluginInfo, itemView());
238 aboutPlugin->exec();
239 return;
240 }
241 }
242 }
243private:
244 QPushButton *pushButton;
245};

Callers

nothing calls this directly

Calls 6

pluginInfoFunction · 0.85
pluginForIndexMethod · 0.80
execMethod · 0.80
modelMethod · 0.45
isEmptyMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected