feat: allow setting the app icon

This commit is contained in:
Richard Ramos 2020-06-23 18:52:16 -04:00 committed by RichΛrd
parent 3b09537792
commit be76f78bc9
2 changed files with 4 additions and 0 deletions

View File

@ -129,6 +129,7 @@ proc dos_qapplication_enable_hdpi() {.cdecl, dynlib: dynLibName, importc.}
proc dos_qapplication_create() {.cdecl, dynlib: dynLibName, importc.}
proc dos_qapplication_exec() {.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.}
# QGuiApplication

View File

@ -11,6 +11,9 @@ proc quit*(application: QApplication) =
## Quit the Qt event loop
dos_qapplication_quit()
proc icon*(application: QApplication, filename: string) =
dos_qapplication_icon(filename.cstring)
proc delete*(application: QApplication) =
## Delete the given QApplication
if application.deleted: