mirror of https://github.com/status-im/nimqml.git
feat: allow setting the app icon
This commit is contained in:
parent
3b09537792
commit
be76f78bc9
|
@ -129,6 +129,7 @@ proc dos_qapplication_enable_hdpi() {.cdecl, dynlib: dynLibName, importc.}
|
||||||
proc dos_qapplication_create() {.cdecl, dynlib: dynLibName, importc.}
|
proc dos_qapplication_create() {.cdecl, dynlib: dynLibName, importc.}
|
||||||
proc dos_qapplication_exec() {.cdecl, dynlib: dynLibName, importc.}
|
proc dos_qapplication_exec() {.cdecl, dynlib: dynLibName, importc.}
|
||||||
proc dos_qapplication_quit() {.cdecl, dynlib: dynLibName, importc.}
|
proc dos_qapplication_quit() {.cdecl, dynlib: dynLibName, importc.}
|
||||||
|
proc dos_qapplication_icon(filename: cstring) {.cdecl, dynlib: dynLibName, importc.}
|
||||||
proc dos_qapplication_delete() {.cdecl, dynlib: dynLibName, importc.}
|
proc dos_qapplication_delete() {.cdecl, dynlib: dynLibName, importc.}
|
||||||
|
|
||||||
# QGuiApplication
|
# QGuiApplication
|
||||||
|
|
|
@ -11,6 +11,9 @@ proc quit*(application: QApplication) =
|
||||||
## Quit the Qt event loop
|
## Quit the Qt event loop
|
||||||
dos_qapplication_quit()
|
dos_qapplication_quit()
|
||||||
|
|
||||||
|
proc icon*(application: QApplication, filename: string) =
|
||||||
|
dos_qapplication_icon(filename.cstring)
|
||||||
|
|
||||||
proc delete*(application: QApplication) =
|
proc delete*(application: QApplication) =
|
||||||
## Delete the given QApplication
|
## Delete the given QApplication
|
||||||
if application.deleted:
|
if application.deleted:
|
||||||
|
|
Loading…
Reference in New Issue