diff options
author | Mikolaj Boc <mikolaj.boc@qt.io> | 2022-10-31 16:08:44 +0100 |
---|---|---|
committer | Mikolaj Boc <mikolaj.boc@qt.io> | 2022-11-11 19:31:30 +0100 |
commit | 2fd4d0586fe9637b14480e03839fd586d9660b89 (patch) | |
tree | 398e6930832d74859c087e1068812b0f737da861 /src/plugins | |
parent | 67fe8f709f385658e8578b1aaa797e5fe1befe68 (diff) |
Call qtUpdateApi on module as expected
The qtUpdateDpi function is a module function, not a scope function
(regardless of it being window-scope self or QtLoader-scope self).
Therefore it should be executed with module as this.
Fixes: QTBUG-108112
Pick-to: 6.4
Change-Id: Ib4604a43dbdd0caa114d3d892ea97b5ee4c9a9a8
Reviewed-by: Aleksandr Reviakin <aleksandr.reviakin@qt.io>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/platforms/wasm/qtloader.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/wasm/qtloader.js b/src/plugins/platforms/wasm/qtloader.js index 33f27bd9b2..cd411e1f69 100644 --- a/src/plugins/platforms/wasm/qtloader.js +++ b/src/plugins/platforms/wasm/qtloader.js @@ -581,7 +581,7 @@ function _QtLoader(config) function setFontDpi(dpi) { self.qtFontDpi = dpi; if (publicAPI.status == "Running") - self.qtUpdateDpi(); + self.module.qtUpdateDpi(); } function fontDpi() { |