10#include <QFileSystemWatcher>
54 void saveRecentFiles();
59 QFileSystemWatcher m_fileWatcher;
static constexpr int maxFiles
void recentFilesUpdated()
Emitted whenever the recent-files list changes (add or file deleted).
QStringList recentFiles()
Returns the current list of recent file paths.
RecentFiles(QObject *parent=nullptr)
Constructs the recent-files manager with parent.
void addRecentFile(const QString &filePath)
Prepends filePath to the recent-files list and saves it.