mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-22 11:39:55 +00:00
Implemented settings dialog.
This commit is contained in:
@@ -15,8 +15,26 @@
|
||||
|
||||
#include "appsettings.h"
|
||||
|
||||
AppSettings::AppSettings(QString fileName) :
|
||||
SettingsBase(fileName)
|
||||
AppSettings* settings;
|
||||
|
||||
SettingsBase::SettingsBase(QObject *parent) :
|
||||
QObject(parent)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
AppSettings::AppSettings(QObject *parent) :
|
||||
SettingsBase(parent)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
QVariant AppSettings::getValue(const QString& name, QVariant defVal) const
|
||||
{
|
||||
return config.value(name, defVal);
|
||||
}
|
||||
|
||||
void AppSettings::setValue(const QString& name, QVariant val)
|
||||
{
|
||||
config.setValue(name, val);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user