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
4#ifndef QACCESSIBLEQUICKCONTROL_H
5#define QACCESSIBLEQUICKCONTROL_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtQuick/private/qaccessiblequickitem_p.h>
19
20QT_BEGIN_NAMESPACE
21
22class QQuickControl;
23
24class QAccessibleQuickControl : public QAccessibleQuickItem, public QAccessibleAttributesInterface
25{
26#ifdef Q_OS_INTEGRITY
27 // force instantiation to avoid error #2045
28 struct error2045 : QList<QAccessible::Attribute> {};
29#endif
30public:
31 QAccessibleQuickControl(QQuickControl *control);
32
33 // QAccessibleInterface
34 void *interface_cast(QAccessible::InterfaceType t) override;
35
36 // QAccessibleAttributesInterface
37 virtual QList<QAccessible::Attribute> attributeKeys() const override;
38 virtual QVariant attributeValue(QAccessible::Attribute key) const override;
39
40private:
41 QQuickControl *control() const;
42};
43
44QT_END_NAMESPACE
45
46#endif // QACCESSIBLEQUICKCONTROL_H
47

source code of qtdeclarative/src/quicktemplates/accessible/qaccessiblequickcontrol_p.h