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

Method execute

plugins/quickopen/projectfilequickopen.cpp:94–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94bool ProjectFileData::execute(QString& filterText)
95{
96 const QUrl url = m_file.path.toUrl();
97 IOpenWith::openFiles(QList<QUrl>() << url);
98
99 auto cursor = KTextEditorHelpers::extractCursor(filterText);
100 if (cursor.isValid()) {
101 IDocument* doc = ICore::self()->documentController()->documentForUrl(url);
102 if (doc) {
103 doc->setCursorPosition(cursor);
104 }
105 }
106 return true;
107}
108
109bool ProjectFileData::isExpandable() const
110{

Callers

nothing calls this directly

Calls 6

documentForUrlMethod · 0.80
documentControllerMethod · 0.80
openFilesFunction · 0.70
toUrlMethod · 0.45
isValidMethod · 0.45
setCursorPositionMethod · 0.45

Tested by

no test coverage detected