Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qaccessiblecache_mac.mm
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
5
6// qcocoaaccessibilityelement.h in platform plugin
7@interface QT_MANGLE_NAMESPACE(QMacAccessibilityElement)
8- (void)invalidate;
9@end
10
11QT_BEGIN_NAMESPACE
12
13void QAccessibleCache::insertElement(QAccessible::Id axid, QT_MANGLE_NAMESPACE(QMacAccessibilityElement) *element) const
14{
15 accessibleElements[axid] = element;
16}
17
18void QAccessibleCache::removeAccessibleElement(QAccessible::Id axid)
19{
20 QT_MANGLE_NAMESPACE(QMacAccessibilityElement) *element = elementForId(axid);
21 [element invalidate];
22 accessibleElements.remove(axid);
23}
24
25QT_MANGLE_NAMESPACE(QMacAccessibilityElement) *QAccessibleCache::elementForId(QAccessible::Id axid) const
26{
27 return accessibleElements.value(axid);
28}
29
30QT_END_NAMESPACE