| 914 | } |
| 915 | |
| 916 | void |
| 917 | FileSystemModel::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 | |
| 934 | const QDir::Filters |
| 935 | FileSystemModel::filter() const |
no test coverage detected