| 1148 | } |
| 1149 | |
| 1150 | boost::shared_ptr<FileSystemItem> |
| 1151 | FileSystemModelPrivate::getItemFromPath(const QString &path) const |
| 1152 | { |
| 1153 | if ( path.isEmpty() || !rootItem ) { |
| 1154 | return rootItem; |
| 1155 | } |
| 1156 | QStringList splitPath = getSplitPath(path); |
| 1157 | |
| 1158 | return rootItem->matchPath( splitPath, 0 ); |
| 1159 | } |
| 1160 | |
| 1161 | bool |
| 1162 | FileSystemModel::setRootPath(const QString& path) |
no test coverage detected