Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qandroidplatformaccessibility.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
7
10{
12}
13
15{}
16
18{
19 if (!isActive() || event == nullptr || !event->accessibleInterface())
20 return;
21
22 // We do not need implementation of all events, as current statues are polled
23 // by QtAccessibilityDelegate.java on every accessibility interaction.
24 // Currently we only send notification about the element's position change,
25 // so that the element can be moved on the screen if it's focused.
26
27 if (event->type() == QAccessible::LocationChanged) {
29 } else if (event->type() == QAccessible::ObjectHide) {
31 } else if (event->type() == QAccessible::Focus) {
33 } else if (event->type() == QAccessible::ValueChanged) {
35 } else if (event->type() == QAccessible::ScrollingEnd) {
37 }
38}
39
41{
42 QPlatformAccessibility::setRootObject(obj);
44}
45
bool isActive
void notifyAccessibilityUpdate(QAccessibleEvent *event) override
\inmodule QtCore
Definition qobject.h:90
Combined button and popup list for selecting options.
void notifyLocationChange(uint accessibilityObjectId)
void notifyObjectFocus(uint accessibilityObjectId)
void createAccessibilityContextObject(QObject *parent)
void notifyObjectHide(uint accessibilityObjectId)
void notifyValueChanged(uint accessibilityObjectId)
void notifyScrolledEvent(uint accessiblityObjectId)
struct _cl_event * event
GLhandleARB obj
[2]