diff --git a/src/nimqml/private/dotherside.nim b/src/nimqml/private/dotherside.nim index 517aca0..b2569e0 100644 --- a/src/nimqml/private/dotherside.nim +++ b/src/nimqml/private/dotherside.nim @@ -123,6 +123,7 @@ proc dos_chararray_delete(str: cstring) {.cdecl, dynlib: dynLibName, importc.} # QCoreApplication proc dos_qcoreapplication_application_dir_path(): cstring {.cdecl, dynlib: dynLibName, importc.} +proc dos_qapplication_enable_hdpi() {.cdecl, dynlib: dynLibName, importc.} # QApplication proc dos_qapplication_create() {.cdecl, dynlib: dynLibName, importc.} diff --git a/src/nimqml/private/qcoreapplication.nim b/src/nimqml/private/qcoreapplication.nim index 1eadc75..003531d 100644 --- a/src/nimqml/private/qcoreapplication.nim +++ b/src/nimqml/private/qcoreapplication.nim @@ -1,3 +1,6 @@ +proc enableHDPI*() = + dos_qapplication_enable_hdpi() + proc applicationDirPath*(app: QCoreApplication): string = let str = dos_qcoreapplication_application_dir_path() result = $str