MCPcopy Create free account
hub / github.com/MultiMC/Launcher / ModFolderModel

Method ModFolderModel

launcher/minecraft/mod/ModFolderModel.cpp:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27#include "LocalModParseTask.h"
28
29ModFolderModel::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
38void ModFolderModel::startWatching()
39{

Callers

nothing calls this directly

Calls 3

ensureFolderPathExistsFunction · 0.85
setFilterMethod · 0.45
setSortingMethod · 0.45

Tested by

no test coverage detected