MCPcopy Create free account
hub / github.com/KDE/kdevelop / updateSelectedDocs

Method updateSelectedDocs

plugins/documentview/kdevdocumentview.cpp:248–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248void 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
264void KDevDocumentView::activated( KDevelop::IDocument* document )
265{

Callers

nothing calls this directly

Calls 6

indexFromItemMethod · 0.80
QStringClass · 0.50
clearMethod · 0.45
fileItemMethod · 0.45
mapFromSourceMethod · 0.45
urlMethod · 0.45

Tested by

no test coverage detected