| 295 | } |
| 296 | |
| 297 | void 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 | |
| 315 | void KDevDocumentView::updateCategoryItem( KDevCategoryItem *item ) |
| 316 | { |
nothing calls this directly
no test coverage detected