mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-07 15:36:26 +00:00
Qt: move some more settings to persistent_settings
This commit is contained in:
parent
70fb5712e5
commit
8799eebfe1
15 changed files with 176 additions and 88 deletions
|
|
@ -37,12 +37,12 @@ void settings::RemoveValue(const QString& key, const QString& name)
|
|||
}
|
||||
}
|
||||
|
||||
QVariant settings::GetValue(const gui_save& entry)
|
||||
QVariant settings::GetValue(const gui_save& entry) const
|
||||
{
|
||||
return m_settings ? m_settings->value(entry.key + "/" + entry.name, entry.def) : entry.def;
|
||||
}
|
||||
|
||||
QVariant settings::GetValue(const QString& key, const QString& name, const QString& def)
|
||||
QVariant settings::GetValue(const QString& key, const QString& name, const QVariant& def) const
|
||||
{
|
||||
return m_settings ? m_settings->value(key + "/" + name, def) : def;
|
||||
}
|
||||
|
|
@ -74,6 +74,14 @@ void settings::SetValue(const gui_save& entry, const QVariant& value)
|
|||
}
|
||||
}
|
||||
|
||||
void settings::SetValue(const QString& key, const QVariant& value)
|
||||
{
|
||||
if (m_settings)
|
||||
{
|
||||
m_settings->setValue(key, value);
|
||||
}
|
||||
}
|
||||
|
||||
void settings::SetValue(const QString& key, const QString& name, const QVariant& value)
|
||||
{
|
||||
if (m_settings)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue