| 233 | } |
| 234 | |
| 235 | static bool canLaunchMetadataFile(const KDevelop::Path &path) |
| 236 | { |
| 237 | KConfig cfg(path.toLocalFile(), KConfig::SimpleConfig); |
| 238 | KConfigGroup group(&cfg, QStringLiteral("Desktop Entry")); |
| 239 | QStringList services = group.readEntry("ServiceTypes", group.readEntry("X-KDE-ServiceTypes", QStringList())); |
| 240 | return services.contains(QStringLiteral("Plasma/Applet")); |
| 241 | } |
| 242 | |
| 243 | //don't bother, nobody uses this interface |
| 244 | bool PlasmoidExecutionConfigType::canLaunch(const QUrl& ) const |
no test coverage detected