| 60 | } |
| 61 | |
| 62 | KDevFileItem* KDevCategoryItem::file( const QUrl &url ) const |
| 63 | { |
| 64 | const auto fileList = this->fileList(); |
| 65 | for (KDevFileItem* item : fileList) { |
| 66 | if ( item->url() == url ) |
| 67 | return item; |
| 68 | } |
| 69 | |
| 70 | return nullptr; |
| 71 | } |
| 72 | |
| 73 | KDevFileItem::KDevFileItem( const QUrl &url ) |
| 74 | : KDevDocumentItem( url.fileName() ) |
no test coverage detected