| 634 | } |
| 635 | |
| 636 | void 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 | |
| 650 | void ChatRootView::addFilesToAttachList(const QStringList &filePaths) |
| 651 | { |
nothing calls this directly
no outgoing calls
no test coverage detected