| 246 | } |
| 247 | |
| 248 | void KDevDocumentView::updateSelectedDocs() |
| 249 | { |
| 250 | m_selectedDocs.clear(); |
| 251 | m_unselectedDocs.clear(); |
| 252 | |
| 253 | const auto allItems = m_documentModel->findItems(QString(), Qt::MatchContains | Qt::MatchRecursive); |
| 254 | for (QStandardItem* item : allItems) { |
| 255 | if (KDevFileItem* fileItem = static_cast<KDevDocumentItem*>(item)->fileItem()) { |
| 256 | if (m_selectionModel->isSelected(m_proxy->mapFromSource(m_documentModel->indexFromItem(fileItem)))) |
| 257 | m_selectedDocs << fileItem->url(); |
| 258 | else |
| 259 | m_unselectedDocs << fileItem->url(); |
| 260 | } |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | void KDevDocumentView::activated( KDevelop::IDocument* document ) |
| 265 | { |
nothing calls this directly
no test coverage detected