| 648 | } |
| 649 | |
| 650 | void 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 | |
| 671 | void ChatRootView::removeFileFromAttachList(int index) |
| 672 | { |
nothing calls this directly
no test coverage detected