MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / WorldList

Method WorldList

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

ensureFolderPathExistsFunction · 0.85
setFilterMethod · 0.45
setSortingMethod · 0.45

Tested by

no test coverage detected