This repository has been archived on 2022-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
dasschmalter/DasSchmalterApp/Qt-Code/appsettings.h
dorian 6cf67334c5 - cleanup
- fixed bug in AppSettings class
2019-03-16 19:57:03 +01:00

30 lines
564 B
C++

#ifndef APPSETTINGS_H
#define APPSETTINGS_H
#include <QFile>
#include <QObject>
#include <QtDebug>
#include <QSettings>
#include <QJsonArray>
#include <QJsonDocument>
#include <QStandardPaths>
class AppSettings : public QObject
{
Q_OBJECT
public:
explicit AppSettings(QObject *parent = nullptr);
~AppSettings();
private:
QSettings *settingsManager;
signals:
public slots:
Q_INVOKABLE QString read(QString key);
Q_INVOKABLE void write(QString key, QVariant variant);
};
extern AppSettings * pGlobalAppSettings;
#endif // APPSETTINGS_H