| 48 | } |
| 49 | |
| 50 | void setRootPath(const QString &rootPath) |
| 51 | { |
| 52 | Q_ASSERT(!rootPath.isEmpty()); |
| 53 | Q_ASSERT(QDir(rootPath).exists()); |
| 54 | Q_ASSERT(QDir(rootPath).isAbsolute()); |
| 55 | |
| 56 | QMutexLocker locker(&s_pathData()->mutex); |
| 57 | s_pathData()->rootPath = rootPath; |
| 58 | } |
| 59 | |
| 60 | void setRelativeRootPath(const char *relativeRootPath) |
| 61 | { |
no test coverage detected