| 228 | |
| 229 | private 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 | } |
| 243 | private: |
| 244 | QPushButton *pushButton; |
| 245 | }; |
nothing calls this directly
no test coverage detected