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
qquickaccessiblefactory.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 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
8#include <QtQuick/private/qquickitem_p.h>
9
11#if QT_CONFIG(accessibility)
12
13QAccessibleInterface *qQuickAccessibleFactory(const QString &classname, QObject *object)
14{
15 if (classname == QLatin1String("QQuickWindow")) {
16 return new QAccessibleQuickWindow(qobject_cast<QQuickWindow *>(object));
17 } else if (classname == QLatin1String("QQuickItem")) {
21 if (!itemPrivate->isAccessible)
22 return nullptr;
23 return new QAccessibleQuickItem(item);
24 }
25
26 return nullptr;
27}
28
29#endif
\inmodule QtCore
Definition qobject.h:103
static QQuickItemPrivate * get(QQuickItem *item)
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
QQuickItem * qobject_cast< QQuickItem * >(QObject *o)
Definition qquickitem.h:492
#define Q_ASSERT(cond)
Definition qrandom.cpp:47
QLatin1StringView QLatin1String
Definition qstringfwd.h:31
QGraphicsItem * item