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

Method delegateToParts

plugins/openwith/openwithplugin.cpp:355–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355void OpenWithPlugin::delegateToParts(const QString& pluginId) const
356{
357 auto prefName = pluginId;
358 if (isTextPart(pluginId)) {
359 // If the user chose a KTE part, lets make sure we're creating a TextDocument instead of
360 // a PartDocument by passing no preferredpart to the documentcontroller
361 // TODO: Solve this rather inside DocumentController
362 prefName.clear();
363 }
364 for (const QUrl& u : std::as_const(m_urls)) {
365 ICore::self()->documentController()->openDocument(u, prefName);
366 }
367}
368
369void OpenWithPlugin::openPart(const QString& pluginId, const QString& name)
370{

Callers

nothing calls this directly

Calls 4

isTextPartFunction · 0.85
documentControllerMethod · 0.80
clearMethod · 0.45
openDocumentMethod · 0.45

Tested by

no test coverage detected