| 605 | } |
| 606 | |
| 607 | UIIcon* FileSystemModel::iconFor( const Node& node, const ModelIndex& index ) const { |
| 608 | if ( index.column() == (Int64)treeColumn() || Column::Icon == index.column() ) { |
| 609 | auto* scene = SceneManager::instance()->getUISceneNode(); |
| 610 | auto* d = scene->findIcon( node.getMimeType() ); |
| 611 | if ( !d ) |
| 612 | return scene->findIcon( !node.info().isDirectory() ? "file" : "folder" ); |
| 613 | return d; |
| 614 | } |
| 615 | return nullptr; |
| 616 | } |
| 617 | |
| 618 | void FileSystemModel::setMode( const Mode& mode ) { |
| 619 | if ( mode != mMode ) { |
nothing calls this directly
no test coverage detected