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

Method WorldList

launcher/minecraft/WorldList.cpp:25–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23#include <QDebug>
24
25WorldList::WorldList(const QString &dir)
26 : QAbstractListModel(), m_dir(dir)
27{
28 FS::ensureFolderPathExists(m_dir.absolutePath());
29 m_dir.setFilter(QDir::Readable | QDir::NoDotAndDotDot | QDir::Files | QDir::Dirs);
30 m_dir.setSorting(QDir::Name | QDir::IgnoreCase | QDir::LocaleAware);
31 m_watcher = new QFileSystemWatcher(this);
32 is_watching = false;
33 connect(m_watcher, SIGNAL(directoryChanged(QString)), this,
34 SLOT(directoryChanged(QString)));
35}
36
37void WorldList::startWatching()
38{

Callers

nothing calls this directly

Calls 3

ensureFolderPathExistsFunction · 0.85
setFilterMethod · 0.45
setSortingMethod · 0.45

Tested by

no test coverage detected