mirror of https://github.com/status-im/nimqml.git
feat: Add restartApp support
This commit is contained in:
parent
2d733c5ec6
commit
acf83a023d
|
@ -137,6 +137,7 @@ proc dos_qguiapplication_try_enable_threaded_renderer() {.cdecl, dynlib: dynLibN
|
||||||
proc dos_qguiapplication_create() {.cdecl, dynlib: dynLibName, importc.}
|
proc dos_qguiapplication_create() {.cdecl, dynlib: dynLibName, importc.}
|
||||||
proc dos_qguiapplication_exec() {.cdecl, dynlib: dynLibName, importc.}
|
proc dos_qguiapplication_exec() {.cdecl, dynlib: dynLibName, importc.}
|
||||||
proc dos_qguiapplication_quit() {.cdecl, dynlib: dynLibName, importc.}
|
proc dos_qguiapplication_quit() {.cdecl, dynlib: dynLibName, importc.}
|
||||||
|
proc dos_qguiapplication_restart() {.cdecl, dynlib: dynLibName, importc.}
|
||||||
proc dos_qguiapplication_icon(filename: cstring) {.cdecl, dynlib: dynLibName, importc.}
|
proc dos_qguiapplication_icon(filename: cstring) {.cdecl, dynlib: dynLibName, importc.}
|
||||||
proc dos_qguiapplication_delete() {.cdecl, dynlib: dynLibName, importc.}
|
proc dos_qguiapplication_delete() {.cdecl, dynlib: dynLibName, importc.}
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,10 @@ proc quit*(self: QGuiApplication) =
|
||||||
## Quit the Qt event loop
|
## Quit the Qt event loop
|
||||||
dos_qguiapplication_quit()
|
dos_qguiapplication_quit()
|
||||||
|
|
||||||
|
proc restartApplication*() =
|
||||||
|
## Restart the app
|
||||||
|
dos_qguiapplication_restart()
|
||||||
|
|
||||||
proc setClipboardText*(text: string = "") =
|
proc setClipboardText*(text: string = "") =
|
||||||
dos_qguiapplication_clipboard_setText(text.cstring)
|
dos_qguiapplication_clipboard_setText(text.cstring)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue