mirror of https://github.com/status-im/nimqml.git
chore(@desktop/general): expose new QSettings functions to nim
This commit is contained in:
parent
c428cf4397
commit
743674eff1
|
@ -371,6 +371,10 @@ proc dos_qsettings_remove(vptr: DosQSettings, key: cstring)
|
||||||
{.cdecl, dynlib: dynLibName, importc.}
|
{.cdecl, dynlib: dynLibName, importc.}
|
||||||
proc dos_qsettings_delete(vptr: DosQSettings)
|
proc dos_qsettings_delete(vptr: DosQSettings)
|
||||||
{.cdecl, dynlib: dynLibName, importc.}
|
{.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
|
# QTimer
|
||||||
proc dos_qtimer_create(): DosQTimer
|
proc dos_qtimer_create(): DosQTimer
|
||||||
|
|
|
@ -28,3 +28,9 @@ proc setValue*(self: QSettings, key: string, value: QVariant) =
|
||||||
|
|
||||||
proc remove*(self: QSettings, key: string) =
|
proc remove*(self: QSettings, key: string) =
|
||||||
dos_qsettings_remove(self.vptr, key)
|
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)
|
Loading…
Reference in New Issue