diff options
author | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2012-12-12 11:49:21 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-01-04 14:16:18 +0100 |
commit | dde63b7c5a05a2f23458ad43b7b29c2354b10dc3 (patch) | |
tree | 5972b2002af3a067ec40eda9eb18ac8da624b896 /src/plugins/accessible/quick/main.cpp | |
parent | da0613abb2ac4966c87a8d92f68488744fabe64b (diff) |
Accessibility: Work with QQuickWindow
Before we would only be accessible when QQView was used.
While the window has the content item, that one will not
appear in the hierarchy of accessible objects since it has
no valueable properties to expose. Instead it's first child
will be used (which was the case before when QQView was used).
Change-Id: I03cefb5c8dcd8296d51ff2bfcb677386a5f1d698
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Diffstat (limited to 'src/plugins/accessible/quick/main.cpp')
-rw-r--r-- | src/plugins/accessible/quick/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/accessible/quick/main.cpp b/src/plugins/accessible/quick/main.cpp index cac5d7e58d..019c84fc6e 100644 --- a/src/plugins/accessible/quick/main.cpp +++ b/src/plugins/accessible/quick/main.cpp @@ -44,7 +44,7 @@ #include "qaccessiblequickview.h" #include "qaccessiblequickitem.h" -#include <QtQuick/QQuickView> +#include <QtQuick/QQuickWindow> #include <QtQuick/QQuickItem> #include <QtQuick/private/qquickitem_p.h> #include <QtQuick/private/qquickaccessibleattached_p.h> @@ -77,15 +77,15 @@ AccessibleQuickFactory::AccessibleQuickFactory() QStringList AccessibleQuickFactory::keys() const { QStringList list; - list << QLatin1String("QQuickView"); + list << QLatin1String("QQuickWindow"); list << QLatin1String("QQuickItem"); return list; } QAccessibleInterface *AccessibleQuickFactory::create(const QString &classname, QObject *object) { - if (classname == QLatin1String("QQuickView")) { - return new QAccessibleQuickView(qobject_cast<QQuickView *>(object)); // FIXME + if (classname == QLatin1String("QQuickWindow")) { + return new QAccessibleQuickWindow(qobject_cast<QQuickWindow *>(object)); } else if (classname == QLatin1String("QQuickItem")) { QQuickItem *item = qobject_cast<QQuickItem *>(object); Q_ASSERT(item); |