MCPcopy Create free account
hub / github.com/Nitrux/maui-shell / RecentFilesModel

Method RecentFilesModel

casklib/src/code/models/recentfilesmodel.cpp:9–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include <QDebug>
8
9RecentFilesModel::RecentFilesModel(QObject *parent) :
10 MauiList(parent)
11, m_loader(new FMH::FileLoader)
12, m_watcher(new QFileSystemWatcher(this))
13{
14// connect(m_loader, &FMH::FileLoader::itemsReady, [&](FMH::MODEL_LIST items)
15// {
16// emit preItemsAppended(items.size());
17// this->m_list << items;
18// emit postItemAppended();
19// });
20
21 connect(m_watcher, &QFileSystemWatcher::directoryChanged, this, &RecentFilesModel::setList);
22}
23
24
25const FMH::MODEL_LIST &RecentFilesModel::items() const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected