Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qaccessiblequicktableview.cpp
Go to the documentation of this file.
1
// Copyright (C) 2026 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
// Qt-Security score:significant reason:default
4
5
#
include
"qaccessiblequicktableview_p.h"
6
7
#
include
<
QtQuick
/
private
/
qquicktableview_p_p
.
h
>
8
9
QT_BEGIN_NAMESPACE
10
11
#
if
QT_CONFIG
(
accessibility
)
12
13
QAccessibleQuickTableView::QAccessibleQuickTableView(QQuickTableView *tableView)
14
: QAccessibleQuickFlickable(tableView)
15
{
16
}
17
18
// The view holds the focus, but assistive technology follows the current cell.
19
// Platforms that ask for the focused element, rather than taking it from the
20
// focus event, find the delegate of that cell here.
21
QAccessibleInterface *QAccessibleQuickTableView::focusChild()
const
22
{
23
if
(
auto
*view = qobject_cast<QQuickTableView *>(object())) {
24
if
(QQuickItem *item = QQuickTableViewPrivate::get(view)->accessibleFocusItem)
25
return
QAccessible::queryAccessibleInterface(item);
26
}
27
return
nullptr
;
28
}
29
30
#
endif
// accessibility
31
32
QT_END_NAMESPACE
qtdeclarative
src
quick
accessible
qaccessiblequicktableview.cpp
Generated on
for Qt by
1.18.0