MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / openFileInExternalEditor

Method openFileInExternalEditor

ChatView/FileItem.cpp:34–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void FileItem::openFileInExternalEditor()
35{
36 if (m_filePath.isEmpty()) {
37 return;
38 }
39
40 bool success = QDesktopServices::openUrl(QUrl::fromLocalFile(m_filePath));
41 if (success) {
42 LOG_MESSAGE(QString("Opened file in external application: %1").arg(m_filePath));
43 } else {
44 LOG_MESSAGE(QString("Failed to open file externally: %1").arg(m_filePath));
45 }
46}
47
48QString FileItem::filePath() const
49{

Callers

nothing calls this directly

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected