MCPcopy Create free account
hub / github.com/MrKepzie/Natron / getItemFromPath

Method getItemFromPath

Engine/FileSystemModel.cpp:1150–1159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1148}
1149
1150boost::shared_ptr<FileSystemItem>
1151FileSystemModelPrivate::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
1161bool
1162FileSystemModel::setRootPath(const QString& path)

Callers 6

getFileSystemItemMethod · 0.80
setFilterMethod · 0.80
onWatchedFileChangedMethod · 0.80

Calls 2

matchPathMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected