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
qtquicktemplates2global.cpp
Go to the documentation of this file.
1// Copyright (C) 2021 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
7#include <QtGui/qtguiglobal.h>
8
9#if QT_CONFIG(accessibility)
10#include "qquickpage_p.h"
11#include "accessible/qaccessiblequickcontrol_p.h"
12#include "accessible/qaccessiblequickpage_p.h"
13#endif
14
16
17#if QT_CONFIG(accessibility)
18static QAccessibleInterface *qQuickAccessibleFactory(const QString &classname, QObject *object)
19{
20 if (classname == u"QQuickPage") {
21 return new QAccessibleQuickPage(qobject_cast<QQuickPage *>(object));
22 }
23 if (classname == u"QQuickControl")
24 return new QAccessibleQuickControl(qobject_cast<QQuickControl *>(object));
25
26 return nullptr;
27}
28#endif
29
31{
32#if QT_CONFIG(accessibility)
33 QAccessible::installFactory(&qQuickAccessibleFactory);
34#endif
35}
36
38
39QT_END_NAMESPACE
QT_BEGIN_NAMESPACE void QQuickTemplates_initializeModule()
Q_GHS_KEEP_REFERENCE(QQuickTemplates_initializeModule)