| 92 | } |
| 93 | |
| 94 | bool 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 | |
| 109 | bool ProjectFileData::isExpandable() const |
| 110 | { |
nothing calls this directly
no test coverage detected