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

Method canOpenDefault

plugins/openwith/openwithplugin.cpp:169–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169bool OpenWithPlugin::canOpenDefault() const
170{
171 if (!m_defaultOpener.isValid() && isDirectory(m_mimeType)) {
172 // potentially happens in non-kde environments apparently, see https://git.reviewboard.kde.org/r/122373
173 return KApplicationTrader::preferredService(m_mimeType);
174 } else {
175 return true;
176 }
177}
178
179OpenWithPlugin::OpenWithPlugin(QObject* parent, const KPluginMetaData& metaData, const QVariantList&)
180 : IPlugin(QStringLiteral("kdevopenwith"), parent, metaData)

Callers

nothing calls this directly

Calls 2

isDirectoryFunction · 0.85
isValidMethod · 0.45

Tested by

no test coverage detected