MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / WorldList

Method WorldList

launcher/minecraft/WorldList.cpp:48–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46#include <QDebug>
47
48WorldList::WorldList(const QString &dir)
49 : QAbstractListModel(), m_dir(dir)
50{
51 FS::ensureFolderPathExists(m_dir.absolutePath());
52 m_dir.setFilter(QDir::Readable | QDir::NoDotAndDotDot | QDir::Files | QDir::Dirs);
53 m_dir.setSorting(QDir::Name | QDir::IgnoreCase | QDir::LocaleAware);
54 m_watcher = new QFileSystemWatcher(this);
55 is_watching = false;
56 connect(m_watcher, SIGNAL(directoryChanged(QString)), this,
57 SLOT(directoryChanged(QString)));
58}
59
60void WorldList::startWatching()
61{

Callers

nothing calls this directly

Calls 3

ensureFolderPathExistsFunction · 0.85
setFilterMethod · 0.45
setSortingMethod · 0.45

Tested by

no test coverage detected