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

Method showAddImageDialog

ChatView/ChatRootView.cpp:744–757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

742}
743
744void 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
759QStringList ChatRootView::convertUrlsToLocalPaths(const QVariantList &urls) const
760{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected