| 742 | } |
| 743 | |
| 744 | void ChatRootView::showAddImageDialog() |
| 745 | { |
| 746 | QFileDialog dialog(nullptr, tr("Select Images to Attach")); |
| 747 | dialog.setFileMode(QFileDialog::ExistingFiles); |
| 748 | dialog.setNameFilter(tr("Images (*.png *.jpg *.jpeg *.gif *.bmp *.webp)")); |
| 749 | |
| 750 | if (auto project = ProjectExplorer::ProjectManager::startupProject()) { |
| 751 | dialog.setDirectory(project->projectDirectory().toFSPathString()); |
| 752 | } |
| 753 | |
| 754 | if (dialog.exec() == QDialog::Accepted) { |
| 755 | addFilesToAttachList(dialog.selectedFiles()); |
| 756 | } |
| 757 | } |
| 758 | |
| 759 | QStringList ChatRootView::convertUrlsToLocalPaths(const QVariantList &urls) const |
| 760 | { |
nothing calls this directly
no outgoing calls
no test coverage detected