Implemented settings dialog.
This commit is contained in:
parent
8926b24226
commit
a25bedd770
14 changed files with 275 additions and 185 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue