chore(@desktop/general): expose new QSettings functions to nim

This commit is contained in:
mprakhov 2022-12-30 11:43:20 +02:00 committed by Mykhailo Prakhov
parent c428cf4397
commit 743674eff1
2 changed files with 11 additions and 1 deletions

View File

@ -371,6 +371,10 @@ proc dos_qsettings_remove(vptr: DosQSettings, key: cstring)
{.cdecl, dynlib: dynLibName, importc.}
proc dos_qsettings_delete(vptr: DosQSettings)
{.cdecl, dynlib: dynLibName, importc.}
proc dos_qsettings_begin_group(vptr: DosQSettings, group: cstring)
{.cdecl, dynlib: dynLibName, importc.}
proc dos_qsettings_end_group(vptr: DosQSettings)
{.cdecl, dynlib: dynLibName, importc.}
# QTimer
proc dos_qtimer_create(): DosQTimer

View File

@ -28,3 +28,9 @@ proc setValue*(self: QSettings, key: string, value: QVariant) =
proc remove*(self: QSettings, key: string) =
dos_qsettings_remove(self.vptr, key)
proc beginGroup*(self: QSettings, group: string) =
dos_qsettings_begin_group(self.vptr, group)
proc endGroup*(self: QSettings) =
dos_qsettings_end_group(self.vptr)