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:
parent
3ee65daa74
commit
b7802b401f
@ -544,27 +544,27 @@ function QtLoader(config)
|
|||||||
|
|
||||||
function addCanvasElement(element) {
|
function addCanvasElement(element) {
|
||||||
if (publicAPI.status == "Running")
|
if (publicAPI.status == "Running")
|
||||||
self.module.qtAddCanvasElement(element);
|
self.module.qtAddContainerElement(element);
|
||||||
else
|
else
|
||||||
console.log("Error: addCanvasElement can only be called in the Running state");
|
console.log("Error: addCanvasElement can only be called in the Running state");
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeCanvasElement(element) {
|
function removeCanvasElement(element) {
|
||||||
if (publicAPI.status == "Running")
|
if (publicAPI.status == "Running")
|
||||||
self.module.qtRemoveCanvasElement(element);
|
self.module.qtRemoveContainerElement(element);
|
||||||
else
|
else
|
||||||
console.log("Error: removeCanvasElement can only be called in the Running state");
|
console.log("Error: removeCanvasElement can only be called in the Running state");
|
||||||
}
|
}
|
||||||
|
|
||||||
function resizeCanvasElement(element) {
|
function resizeCanvasElement(element) {
|
||||||
if (publicAPI.status == "Running")
|
if (publicAPI.status == "Running")
|
||||||
self.module.qtResizeCanvasElement(element);
|
self.module.qtResizeContainerElement(element);
|
||||||
}
|
}
|
||||||
|
|
||||||
function setFontDpi(dpi) {
|
function setFontDpi(dpi) {
|
||||||
self.qtFontDpi = dpi;
|
self.qtFontDpi = dpi;
|
||||||
if (publicAPI.status == "Running")
|
if (publicAPI.status == "Running")
|
||||||
self.qtSetFontDpi(dpi);
|
self.qtUpdateDpi();
|
||||||
}
|
}
|
||||||
|
|
||||||
function fontDpi() {
|
function fontDpi() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user