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

Method showAttachFilesDialog

ChatView/ChatRootView.cpp:636–648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

634}
635
636void ChatRootView::showAttachFilesDialog()
637{
638 QFileDialog dialog(nullptr, tr("Select Files to Attach"));
639 dialog.setFileMode(QFileDialog::ExistingFiles);
640
641 if (auto project = ProjectExplorer::ProjectManager::startupProject()) {
642 dialog.setDirectory(project->projectDirectory().toFSPathString());
643 }
644
645 if (dialog.exec() == QDialog::Accepted) {
646 addFilesToAttachList(dialog.selectedFiles());
647 }
648}
649
650void ChatRootView::addFilesToAttachList(const QStringList &filePaths)
651{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected