4#include <QFileSystemWatcher>
37 void setFilepath(
const QString& filepath,
bool watch =
false);
55 [[nodiscard]]
const QFileInfo&
fileInfo()
const;
80 void onFileChance(
const QString& file);
Keeps the application up-to-date with changes in the settings file.
Definition ApplicationSettings.h:18
QSettings getSettings(QObject *parent=nullptr) const
Gets a QSettings instance using the set file path.
const QIcon & getIcon() const
Gets the application icon.
~ApplicationSettings() override
Destructor.
void setFilepath(const QString &filepath, bool watch=false)
Sets the fileInfo using the filepath.
QSettings * getNewSettings(QObject *parent=nullptr) const
Gets a new QSettings instance using the set file path. The when no parent is given the object should ...
static ApplicationSettings & global()
Gets the application settings reference to the global app settings when created.
const QFileInfo & fileInfo() const
Gets the fileInfo on the set file path.
ApplicationSettings(QObject *parent=nullptr)
Qt Constructor.
void storeWindowRect(QAnyStringView win_name, QWidget *window, bool read) const
Stores or restores the window position and size from the settings file onto the passed widget.
#define _MISC_CLASS
Definition misc/global.h:40
Definition Application.h:10