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
qaccessiblequickapplicationwindow.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
6
8
14
15void *QAccessibleQuickApplicationWindow::interface_cast(QAccessible::InterfaceType t)
16{
17 if (t == QAccessible::AttributesInterface)
18 return static_cast<QAccessibleAttributesInterface *>(this);
19
20 return QAccessibleQuickWindow::interface_cast(t);
21}
22
24{
25 return { QAccessible::Attribute::Locale };
26}
27
29{
30 if (key == QAccessible::Attribute::Locale) {
31 Q_ASSERT(applicationWindow());
32 return QVariant::fromValue(applicationWindow()->locale());
33 }
34
35 return QVariant();
36}
37
38QQuickApplicationWindow *QAccessibleQuickApplicationWindow::applicationWindow() const
39{
40 return static_cast<QQuickApplicationWindow *>(object());
41}
42
43QT_END_NAMESPACE
virtual QVariant attributeValue(QAccessible::Attribute key) const override
virtual QList< QAccessible::Attribute > attributeKeys() const override
void * interface_cast(QAccessible::InterfaceType t) override
Combined button and popup list for selecting options.