Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | wasm: fix QWasmString::toQString assertion for emscripten 1.39.4 | Alexandra Cherdantseva | 2020-01-31 | 1 | -2/+3 |
| | | | | | | | | | | In emscripten 1.39.4 `maxBytesToWrite` argument is required for function `stringToUTF16(str, outPtr, maxBytesToWrite)` Fixes: QTBUG-81728 Change-Id: I634134a30454ae09a9a05593428397b40464b31f Reviewed-by: jian liang <jianliang79@gmail.com> Reviewed-by: Lorn Potter <lorn.potter@gmail.com> | ||||
* | wasm: fix redundant string conversions between wasm and JavaScript | Alexandra Cherdantseva | 2020-01-22 | 1 | -0/+61 |
Avoid redundant conversions from UTF16 to UTF8 to UTF16 with help of new class QWasmString static methods: + QWasmString::fromQString to convert QString to js string using js Module.UTF16ToString + QWasmString::toQString to convert js string to QString using js Module.stringToUTF16 Fixed document.getElementById calls for cavasId with unicode characters. Change-Id: I3fc55bfeb6aeda75fa3acd85d22cea667b542f38 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io> Reviewed-by: Lorn Potter <lorn.potter@gmail.com> |