Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
5
6#include <QtGui/qtguiglobal.h>
7
8#if QT_CONFIG(accessibility)
9#include "qquickpage_p.h"
11#endif
12
14
15#if QT_CONFIG(accessibility)
16static QAccessibleInterface *qQuickAccessibleFactory(const QString &classname, QObject *object)
17{
18 if (classname == u"QQuickPage") {
19 return new QAccessibleQuickPage(qobject_cast<QQuickPage *>(object));
20 }
21 return nullptr;
22}
23#endif
24
26{
27#if QT_CONFIG(accessibility)
28 QAccessible::installFactory(&qQuickAccessibleFactory);
29#endif
30}
31
33
\inmodule QtCore
Definition qobject.h:103
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
Q_CONSTRUCTOR_FUNCTION(qt_apple_check_os_version)
QT_BEGIN_NAMESPACE void QQuickTemplates_initializeModule()