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

Method closed

plugins/documentview/kdevdocumentview.cpp:297–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297void KDevDocumentView::closed( KDevelop::IDocument* document )
298{
299 KDevFileItem* file = m_doc2index[ document ];
300 if ( !file )
301 return;
302
303 QStandardItem* categoryItem = file->parent();
304
305 qDeleteAll(categoryItem->takeRow(m_documentModel->indexFromItem(file).row()));
306
307 m_doc2index.remove(document);
308
309 if ( categoryItem->hasChildren() )
310 return;
311
312 qDeleteAll(m_documentModel->takeRow(m_documentModel->indexFromItem(categoryItem).row()));
313}
314
315void KDevDocumentView::updateCategoryItem( KDevCategoryItem *item )
316{

Callers

nothing calls this directly

Calls 6

takeRowMethod · 0.80
indexFromItemMethod · 0.80
parentMethod · 0.45
rowMethod · 0.45
removeMethod · 0.45
hasChildrenMethod · 0.45

Tested by

no test coverage detected