chore: add QSettings beginGroup and endGroup

This commit is contained in:
mprakhov 2022-12-30 11:29:47 +02:00 committed by Michał
parent 68096fe9ab
commit dda5e100f6
2 changed files with 21 additions and 0 deletions

View File

@ -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

View File

@ -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