MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / setFilter

Method setFilter

Engine/FileSystemModel.cpp:916–932  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

914}
915
916void
917FileSystemModel::setFilter(const QDir::Filters& filters)
918{
919 {
920 QMutexLocker l(&_imp->filtersMutex);
921 _imp->filters = filters;
922 }
923
924 ///Refresh the current directory
925
926 ///Get the item corresponding to the current directory
927 QFileInfo info(_imp->currentRootPath);
928 FileSystemItemPtr parent = _imp->getItemFromPath( info.absolutePath() );
929
930 assert(parent);
931 cleanAndRefreshItem(parent);
932}
933
934const QDir::Filters
935FileSystemModel::filter() const

Callers 1

showHiddenMethod · 0.80

Calls 2

getItemFromPathMethod · 0.80
absolutePathMethod · 0.80

Tested by

no test coverage detected