Use the correct module exports in qtloader

Refactoring of module exports in qwasmintegration.cpp was not followed
by adjusting the qtloader. Do this now.

Fixes: QTBUG-105264
Change-Id: Ibb0a4a20c0df1409cdcbba04ebd42c1569ae586a
Reviewed-by: David Skoland <david.skoland@qt.io>
This commit is contained in:
Mikolaj Boc 2022-08-02 12:59:01 +02:00
parent 3ee65daa74
commit b7802b401f

View File

@ -544,27 +544,27 @@ function QtLoader(config)
function addCanvasElement(element) {
if (publicAPI.status == "Running")
self.module.qtAddCanvasElement(element);
self.module.qtAddContainerElement(element);
else
console.log("Error: addCanvasElement can only be called in the Running state");
}
function removeCanvasElement(element) {
if (publicAPI.status == "Running")
self.module.qtRemoveCanvasElement(element);
self.module.qtRemoveContainerElement(element);
else
console.log("Error: removeCanvasElement can only be called in the Running state");
}
function resizeCanvasElement(element) {
if (publicAPI.status == "Running")
self.module.qtResizeCanvasElement(element);
self.module.qtResizeContainerElement(element);
}
function setFontDpi(dpi) {
self.qtFontDpi = dpi;
if (publicAPI.status == "Running")
self.qtSetFontDpi(dpi);
self.qtUpdateDpi();
}
function fontDpi() {