summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorJonas Kvinge <jonas@jkvinge.net>2021-10-11 20:31:46 +0200
committerJonas Kvinge <jonas@jkvinge.net>2021-10-12 15:55:53 +0200
commit2675c288e84e8e2392498e00a02ba0489c2f7358 (patch)
tree9979a8e4713f0026951ab1b921d5cfb6e56b73be /src/plugins
parent0e58b3db346c70babf10ffa8c813452cda65626c (diff)
wasm: Fix source code comment typos
Change-Id: I9b2b76c01880c7bb515fdc1a6c4ef1f0bcf6be95 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/platforms/wasm/qtloader.js4
-rw-r--r--src/plugins/platforms/wasm/qwasmcompositor.cpp4
-rw-r--r--src/plugins/platforms/wasm/qwasmeventdispatcher.cpp2
-rw-r--r--src/plugins/platforms/wasm/qwasmintegration.cpp2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/platforms/wasm/qtloader.js b/src/plugins/platforms/wasm/qtloader.js
index d73fe3e23a..1180e55f73 100644
--- a/src/plugins/platforms/wasm/qtloader.js
+++ b/src/plugins/platforms/wasm/qtloader.js
@@ -68,7 +68,7 @@
//
// containerElements : [container-element, ...]
// One or more HTML elements. QtLoader will display loader elements
-// on these while loading the applicaton, and replace the loader with a
+// on these while loading the application, and replace the loader with a
// canvas on load complete.
// canvasElements : [canvas-element, ...]
// One or more canvas elements.
@@ -280,7 +280,7 @@ function QtLoader(config)
function fetchThenCompileWasm(response) {
return response.arrayBuffer().then(function(data) {
self.loaderSubState = "Compiling";
- setStatus("Loading") // trigger loaderSubState udpate
+ setStatus("Loading") // trigger loaderSubState update
return WebAssembly.compile(data);
});
}
diff --git a/src/plugins/platforms/wasm/qwasmcompositor.cpp b/src/plugins/platforms/wasm/qwasmcompositor.cpp
index 3883bf3c95..385e47f0a0 100644
--- a/src/plugins/platforms/wasm/qwasmcompositor.cpp
+++ b/src/plugins/platforms/wasm/qwasmcompositor.cpp
@@ -146,7 +146,7 @@ void QWasmCompositor::setVisible(QWasmWindow *window, bool visible)
if (visible)
compositedWindow.damage = compositedWindow.window->geometry();
else
- m_globalDamage = compositedWindow.window->geometry(); // repaint previosly covered area.
+ m_globalDamage = compositedWindow.window->geometry(); // repaint previously covered area.
requestRedraw();
}
@@ -172,7 +172,7 @@ void QWasmCompositor::lower(QWasmWindow *window)
m_windowStack.removeAll(window);
m_windowStack.prepend(window);
QWasmCompositedWindow &compositedWindow = m_compositedWindows[window];
- m_globalDamage = compositedWindow.window->geometry(); // repaint previosly covered area.
+ m_globalDamage = compositedWindow.window->geometry(); // repaint previously covered area.
notifyTopWindowChanged(window);
}
diff --git a/src/plugins/platforms/wasm/qwasmeventdispatcher.cpp b/src/plugins/platforms/wasm/qwasmeventdispatcher.cpp
index 69a38ecd68..8f9eeecbb0 100644
--- a/src/plugins/platforms/wasm/qwasmeventdispatcher.cpp
+++ b/src/plugins/platforms/wasm/qwasmeventdispatcher.cpp
@@ -148,7 +148,7 @@ void QWasmEventDispatcher::doMaintainTimers()
{
Q_D(QWasmEventDispatcher);
- // This functon schedules native timers in order to wake up to
+ // This function schedules native timers in order to wake up to
// process events and activate Qt timers. This is done using the
// emscripten_async_call() API which schedules a new timer.
// There is unfortunately no way to cancel or update a current
diff --git a/src/plugins/platforms/wasm/qwasmintegration.cpp b/src/plugins/platforms/wasm/qwasmintegration.cpp
index 470deb6d70..5b010c170e 100644
--- a/src/plugins/platforms/wasm/qwasmintegration.cpp
+++ b/src/plugins/platforms/wasm/qwasmintegration.cpp
@@ -146,7 +146,7 @@ QWasmIntegration::QWasmIntegration()
QWasmIntegration::~QWasmIntegration()
{
- // Remove event listenes
+ // Remove event listener
emscripten_set_resize_callback(EMSCRIPTEN_EVENT_TARGET_WINDOW, nullptr, EM_TRUE, nullptr);
emscripten::val visualViewport = emscripten::val::global("window")["visualViewport"];
if (!visualViewport.isUndefined()) {