-----------------------------------------------------------------------------
| 54 | |
| 55 | //----------------------------------------------------------------------------- |
| 56 | static QFileSystemModel* globalFileSystemModelForFiles() |
| 57 | { |
| 58 | static QFileSystemModel* m = NULL; |
| 59 | if (!m) |
| 60 | { |
| 61 | m = new QFileSystemModel(); |
| 62 | #if (QT_VERSION >= QT_VERSION_CHECK(5,14,0)) |
| 63 | // Prevent slow browsing of network drives |
| 64 | m->setOption(QFileSystemModel::DontUseCustomDirectoryIcons); |
| 65 | #endif |
| 66 | m->setRootPath(""); |
| 67 | } |
| 68 | return m; |
| 69 | } |
| 70 | |
| 71 | //----------------------------------------------------------------------------- |
| 72 | static QFileSystemModel* globalFileSystemModelForDirectories() |
no test coverage detected