diff options
| author | Even Oscar Andersen <[email protected]> | 2025-04-15 09:20:24 +0200 |
|---|---|---|
| committer | Even Oscar Andersen <[email protected]> | 2025-05-19 18:03:29 +0200 |
| commit | c3c51dd5d17acd5984230937a9c6010b73862998 (patch) | |
| tree | affc100595f82458ba9aede0441db215550bde62 /src/plugins/platforms/wasm/qwasmwindow.cpp | |
| parent | a13d84b56a2f02be71aca376ccdba39a7a38ef86 (diff) | |
wasm: a11y - move to describedbycontainer
aria-description is more rarely supported than aria-describedby.
So switch to the latter. Create a new container inside the
a11yContainer.
Handle DescriptionChanged to update description in one place only
Task-number: QTBUG-134657
Change-Id: I0d025e5739451e6fab133c2590fd20ea13e2d946
Reviewed-by: Morten Johan Sørvig <[email protected]>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmwindow.cpp')
| -rw-r--r-- | src/plugins/platforms/wasm/qwasmwindow.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/platforms/wasm/qwasmwindow.cpp b/src/plugins/platforms/wasm/qwasmwindow.cpp index 05ff67ced6f..3337be184d6 100644 --- a/src/plugins/platforms/wasm/qwasmwindow.cpp +++ b/src/plugins/platforms/wasm/qwasmwindow.cpp @@ -51,7 +51,8 @@ QWasmWindowStack::PositionPreference positionPreferenceFromWindowFlags(Qt::Windo Q_GUI_EXPORT int qt_defaultDpiX(); QWasmWindow::QWasmWindow(QWindow *w, QWasmDeadKeySupport *deadKeySupport, - QWasmCompositor *compositor, QWasmBackingStore *backingStore, WId nativeHandle) + QWasmCompositor *compositor, QWasmBackingStore *backingStore, + WId nativeHandle) : QPlatformWindow(w), m_compositor(compositor), m_backingStore(backingStore), @@ -211,12 +212,13 @@ void QWasmWindow::registerEventHandlers() QWasmWindow::~QWasmWindow() { #if QT_CONFIG(accessibility) - QWasmAccessibility::removeAccessibilityEnableButton(window()); + QWasmAccessibility::onRemoveWindow(window()); #endif shutdown(); emscripten::val::module_property("specialHTMLTargets").delete_(canvasSelector()); m_window.call<void>("removeChild", m_canvas); + m_window.call<void>("removeChild", m_a11yContainer); m_context2d = emscripten::val::undefined(); commitParent(nullptr); if (m_requestAnimationFrameId > -1) |
