18#include "AppSettings.hpp"
20#define SET_AND_EMIT(key) \
21 settings.setValue(#key, key##_); \
22 Q_EMIT key##Changed(key##_);
24AppSettings::AppSettings() {
25 this->recentlyOpenedFiles_ = this->settings.value(
"recentlyOpenedFiles").toStringList();
29 return recentlyOpenedFiles_;
34 recentlyOpenedFiles_.removeAll(newFile);
35 recentlyOpenedFiles_.push_back(newFile);
40 recentlyOpenedFiles_.removeAll(filePath);
45 this->recentlyOpenedFiles_.clear();
void recentlyOpenedFilesRemove(const QString &filePath)
Removes a file from the recently opened files list.
void recentlyOpenedFilesClear()
Clears the recently opened files list.
void recentlyOpenedFilesPush(const QString &newFile)
Pushes a new file to the recently opened files list.
const QStringList & recentlyOpenedFiles() const
Returns the recently opened files.