Commit 523be17b authored by Frederik Gladhorn's avatar Frederik Gladhorn Committed by Qt by Nokia

Add active and invisible states for accessibility.

QQuickView should expose the right states.

Change-Id: I38c0ce8bea46a749efb0b9085fb0f646538698b2
Reviewed-by: 's avatarJan-Arve Sæther <jan-arve.saether@nokia.com>
parent 3d8f103c
......@@ -41,6 +41,8 @@
#include "qaccessiblequickview.h"
#include <QtGui/qguiapplication.h>
#include <QtQuick/qquickitem.h>
#include <QtQuick/private/qquickitem_p.h>
......@@ -83,7 +85,12 @@ QAccessible::Role QAccessibleQuickView::role() const
QAccessible::State QAccessibleQuickView::state() const
{
return QAccessible::State(); // FIXME
QAccessible::State st;
if (view() == QGuiApplication::focusWindow())
st.active = true;
if (!view()->isVisible())
st.invisible = true;
return st;
}
QRect QAccessibleQuickView::rect() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment