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

Method addFilesToAttachList

ChatView/ChatRootView.cpp:650–669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

648}
649
650void ChatRootView::addFilesToAttachList(const QStringList &filePaths)
651{
652 if (filePaths.isEmpty()) {
653 return;
654 }
655
656 const QStringList processedPaths = m_fileManager->processDroppedFiles(filePaths);
657
658 bool filesAdded = false;
659 for (const QString &filePath : processedPaths) {
660 if (!m_attachmentFiles.contains(filePath)) {
661 m_attachmentFiles.append(filePath);
662 filesAdded = true;
663 }
664 }
665
666 if (filesAdded) {
667 emit attachmentFilesChanged();
668 }
669}
670
671void ChatRootView::removeFileFromAttachList(int index)
672{

Callers

nothing calls this directly

Calls 3

processDroppedFilesMethod · 0.80
appendMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected