| 7 | #include <QDebug> |
| 8 | |
| 9 | RecentFilesModel::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 | |
| 25 | const FMH::MODEL_LIST &RecentFilesModel::items() const |
nothing calls this directly
no outgoing calls
no test coverage detected