mirror of https://github.com/status-im/nimqml.git
Enable HDPI
This commit is contained in:
parent
49d1a72ef7
commit
17398572de
|
@ -123,6 +123,7 @@ proc dos_chararray_delete(str: cstring) {.cdecl, dynlib: dynLibName, importc.}
|
||||||
|
|
||||||
# QCoreApplication
|
# QCoreApplication
|
||||||
proc dos_qcoreapplication_application_dir_path(): cstring {.cdecl, dynlib: dynLibName, importc.}
|
proc dos_qcoreapplication_application_dir_path(): cstring {.cdecl, dynlib: dynLibName, importc.}
|
||||||
|
proc dos_qapplication_enable_hdpi() {.cdecl, dynlib: dynLibName, importc.}
|
||||||
|
|
||||||
# QApplication
|
# QApplication
|
||||||
proc dos_qapplication_create() {.cdecl, dynlib: dynLibName, importc.}
|
proc dos_qapplication_create() {.cdecl, dynlib: dynLibName, importc.}
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
proc enableHDPI*() =
|
||||||
|
dos_qapplication_enable_hdpi()
|
||||||
|
|
||||||
proc applicationDirPath*(app: QCoreApplication): string =
|
proc applicationDirPath*(app: QCoreApplication): string =
|
||||||
let str = dos_qcoreapplication_application_dir_path()
|
let str = dos_qcoreapplication_application_dir_path()
|
||||||
result = $str
|
result = $str
|
||||||
|
|
Loading…
Reference in New Issue