diff options
| author | Kai Köhne <[email protected]> | 2022-06-10 17:34:41 +0200 | 
|---|---|---|
| committer | Kai Köhne <[email protected]> | 2022-06-15 21:31:02 +0200 | 
| commit | 9d2cc4dd766ca6538e17040b6ac845ed880ab0fe (patch) | |
| tree | a674c1f10c2bb266b2cff88ef3d6d864ed932212 /src/plugins/platforms/wasm/qwasmscreen.cpp | |
| parent | 37bad1f43b33a460f402f16280719d3b49dd7b24 (diff) | |
Fix typos in docs and comments
Found by codespell
Pick-to: 6.4
Change-Id: Ie3e301a23830c773a2e9aff487c702a223d246eb
Reviewed-by: Nicholas Bennett <[email protected]>
Reviewed-by: Edward Welbourne <[email protected]>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmscreen.cpp')
| -rw-r--r-- | src/plugins/platforms/wasm/qwasmscreen.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/platforms/wasm/qwasmscreen.cpp b/src/plugins/platforms/wasm/qwasmscreen.cpp index f2d600dcb06..15f2fa69cc4 100644 --- a/src/plugins/platforms/wasm/qwasmscreen.cpp +++ b/src/plugins/platforms/wasm/qwasmscreen.cpp @@ -173,7 +173,7 @@ bool QWasmScreen::hasSpecialHtmlTargets() const  {      static bool gotIt = []{          // specialHTMLTargets is a JavaScript Array if available. Note that it is -        // an abort() function if not, so a simple isUndefined() test wont't work here. +        // an abort() function if not, so a simple isUndefined() test won't work here.          return emscripten::val::module_property("specialHTMLTargets")                 ["constructor"]["name"].as<std::string>() == std::string("Array");      }(); @@ -286,7 +286,7 @@ void QWasmScreen::updateQScreenAndCanvasRenderSize()      m_canvas.set("width", canvasSize.width());      m_canvas.set("height", canvasSize.height()); -    // Returns the html elments document/body position +    // Returns the html elements document/body position      auto getElementBodyPosition = [](const emscripten::val &element) -> QPoint {          emscripten::val bodyRect = element["ownerDocument"]["body"].call<emscripten::val>("getBoundingClientRect");          emscripten::val canvasRect = element.call<emscripten::val>("getBoundingClientRect");  | 
