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
qaccessiblequickcontrol.cpp
Go to the documentation of this file.
1// Copyright (C) 2025 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
7
9
14
15void *QAccessibleQuickControl::interface_cast(QAccessible::InterfaceType t)
16{
17 if (t == QAccessible::AttributesInterface)
18 return static_cast<QAccessibleAttributesInterface *>(this);
19
20 return QAccessibleQuickItem::interface_cast(t);
21}
22
24{
25 return { QAccessible::Attribute::Locale };
26}
27
28QVariant QAccessibleQuickControl::attributeValue(QAccessible::Attribute key) const
29{
30 if (key == QAccessible::Attribute::Locale)
31 return QVariant::fromValue(control()->locale());
32
33 return QVariant();
34}
35
36QQuickControl *QAccessibleQuickControl::control() const
37{
38 return static_cast<QQuickControl *>(object());
39}
40
41QT_END_NAMESPACE
void * interface_cast(QAccessible::InterfaceType t) override
virtual QVariant attributeValue(QAccessible::Attribute key) const override
virtual QList< QAccessible::Attribute > attributeKeys() const override
QPlatformMediaRecorder * control