| 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 | |
| 4 | #include "qaccessiblequickwidgetfactory_p.h" |
| 5 | #include "qaccessiblequickwidget_p.h" |
| 6 | |
| 7 | QT_BEGIN_NAMESPACE |
| 8 | |
| 9 | #if QT_CONFIG(accessibility) |
| 10 | |
| 11 | QAccessibleInterface *qAccessibleQuickWidgetFactory(const QString &classname, QObject *object) |
| 12 | { |
| 13 | if (classname == QLatin1String("QQuickWidget")) { |
| 14 | return new QAccessibleQuickWidget(qobject_cast<QQuickWidget *>(object)); |
| 15 | } else if (classname == QLatin1String("QQuickWidgetOffscreenWindow")) { |
| 16 | return new QAccessibleQuickWidgetOffscreenWindow(qobject_cast<QQuickWindow *>(object)); |
| 17 | } |
| 18 | return 0; |
| 19 | } |
| 20 | |
| 21 | #endif // accessibility |
| 22 | |
| 23 | QT_END_NAMESPACE |
| 24 | |
| 25 |
