summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wasm/qwasmwindow.h
diff options
authorEven Oscar Andersen <even.oscar.andersen@qt.io>2025-03-27 12:44:54 +0100
committerEven Oscar Andersen <even.oscar.andersen@qt.io>2025-04-03 15:19:26 +0200
commit45f678507821c44f6e388765f82f15792fefd286 (patch)
tree89f4238773ce0128fc6aa094d87317c2b588e855 /src/plugins/platforms/wasm/qwasmwindow.h
parent10851432080df38668a07ff22f1da1c3cbfbfe51 (diff)
wasm: a11y - enable accessibility by environment variable
If QT_WASM_ENABLE_ACCESSIBILITY is set to "1" when the application starts, accessibility is enabled right away. Change-Id: I5b0118dc8ae19f446c64be33fe3c03b45c5b4527 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmwindow.h')
-rw-r--r--src/plugins/platforms/wasm/qwasmwindow.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/platforms/wasm/qwasmwindow.h b/src/plugins/platforms/wasm/qwasmwindow.h
index 8b5e6d56a71..c77bfae3cb2 100644
--- a/src/plugins/platforms/wasm/qwasmwindow.h
+++ b/src/plugins/platforms/wasm/qwasmwindow.h
@@ -140,11 +140,11 @@ private:
QWasmDeadKeySupport *m_deadKeySupport;
QRect m_normalGeometry {0, 0, 0 ,0};
- emscripten::val m_document;
- emscripten::val m_decoratedWindow;
- emscripten::val m_window;
- emscripten::val m_a11yContainer;
- emscripten::val m_canvas;
+ emscripten::val m_document = emscripten::val::undefined();
+ emscripten::val m_decoratedWindow = emscripten::val::undefined();
+ emscripten::val m_window = emscripten::val::undefined();
+ emscripten::val m_a11yContainer = emscripten::val::undefined();
+ emscripten::val m_canvas = emscripten::val::undefined();
emscripten::val m_context2d = emscripten::val::undefined();
std::unique_ptr<NonClientArea> m_nonClientArea;
close