mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-25 16:13:54 -07:00
Refactred settings to use settingscache & ini files
This commit is contained in:
parent
9c28cdd1f5
commit
c8d59eec5e
29 changed files with 780 additions and 241 deletions
25
cockatrice/src/settings/settingsmanager.h
Normal file
25
cockatrice/src/settings/settingsmanager.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#ifndef SETTINGSMANAGER_H
|
||||
#define SETTINGSMANAGER_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QSettings>
|
||||
#include <QStringList>
|
||||
#include <QVariant>
|
||||
|
||||
class SettingsManager : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
SettingsManager(QString settingPath, QObject *parent = 0);
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
|
||||
protected:
|
||||
QSettings settings;
|
||||
QVariant getValue(QString name, QString group = "", QString subGroup = "" );
|
||||
void setValue(QVariant value, QString name, QString group = "", QString subGroup = "" );
|
||||
};
|
||||
|
||||
#endif // SETTINGSMANAGER_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue