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

Method showLinkFilesDialog

ChatView/ChatRootView.cpp:684–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

682}
683
684void ChatRootView::showLinkFilesDialog()
685{
686 QFileDialog dialog(nullptr, tr("Select Files to Attach"));
687 dialog.setFileMode(QFileDialog::ExistingFiles);
688
689 if (auto project = ProjectExplorer::ProjectManager::startupProject()) {
690 dialog.setDirectory(project->projectDirectory().toFSPathString());
691 }
692
693 if (dialog.exec() == QDialog::Accepted) {
694 addFilesToLinkList(dialog.selectedFiles());
695 }
696}
697
698void ChatRootView::addFilesToLinkList(const QStringList &filePaths)
699{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected