chore: add QSettings beginGroup and endGroup
This commit is contained in:
parent
68096fe9ab
commit
dda5e100f6
|
@ -1018,6 +1018,8 @@ DOS_API void dos_qsettings_set_value(DosQSettings* vptr, const char* key,
|
|||
DosQVariant* value);
|
||||
DOS_API void dos_qsettings_remove(DosQSettings* vptr, const char* key);
|
||||
DOS_API void dos_qsettings_delete(DosQSettings* vptr);
|
||||
DOS_API void dos_qsettings_begin_group(DosQSettings* vptr, const char* group);
|
||||
DOS_API void dos_qsettings_end_group(DosQSettings* vptr);
|
||||
|
||||
#pragma endregion
|
||||
|
||||
|
|
|
@ -1580,6 +1580,25 @@ void dos_qsettings_delete(DosQSettings* vptr)
|
|||
if(qobject)
|
||||
qobject->deleteLater();
|
||||
}
|
||||
|
||||
void dos_qsettings_begin_group(DosQSettings* vptr, const char* group)
|
||||
{
|
||||
auto settings = static_cast<QSettings*>(vptr);
|
||||
if(settings)
|
||||
{
|
||||
return settings->beginGroup(QString(group));
|
||||
}
|
||||
}
|
||||
|
||||
void dos_qsettings_end_group(DosQSettings* vptr)
|
||||
{
|
||||
auto settings = static_cast<QSettings*>(vptr);
|
||||
if(settings)
|
||||
{
|
||||
return settings->endGroup();
|
||||
}
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
|
||||
#pragma region QTimer
|
||||
|
|
Loading…
Reference in New Issue