| 27 | #include "LocalModParseTask.h" |
| 28 | |
| 29 | ModFolderModel::ModFolderModel(const QString &dir) : QAbstractListModel(), m_dir(dir) |
| 30 | { |
| 31 | FS::ensureFolderPathExists(m_dir.absolutePath()); |
| 32 | m_dir.setFilter(QDir::Readable | QDir::NoDotAndDotDot | QDir::Files | QDir::Dirs); |
| 33 | m_dir.setSorting(QDir::Name | QDir::IgnoreCase | QDir::LocaleAware); |
| 34 | m_watcher = new QFileSystemWatcher(this); |
| 35 | connect(m_watcher, SIGNAL(directoryChanged(QString)), this, SLOT(directoryChanged(QString))); |
| 36 | } |
| 37 | |
| 38 | void ModFolderModel::startWatching() |
| 39 | { |
nothing calls this directly
no test coverage detected