aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/quick/accessible/qaccessiblequickitem.cpp5
-rw-r--r--src/quick/accessible/qaccessiblequickitem_p.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/quick/accessible/qaccessiblequickitem.cpp b/src/quick/accessible/qaccessiblequickitem.cpp
index 44a2caecec..2ce914c0b6 100644
--- a/src/quick/accessible/qaccessiblequickitem.cpp
+++ b/src/quick/accessible/qaccessiblequickitem.cpp
@@ -48,6 +48,11 @@ QAccessibleQuickItem::QAccessibleQuickItem(QQuickItem *item)
{
}
+QWindow *QAccessibleQuickItem::window() const
+{
+ return item()->window();
+}
+
int QAccessibleQuickItem::childCount() const
{
return childItems().count();
diff --git a/src/quick/accessible/qaccessiblequickitem_p.h b/src/quick/accessible/qaccessiblequickitem_p.h
index 1ec569731e..af9f8db249 100644
--- a/src/quick/accessible/qaccessiblequickitem_p.h
+++ b/src/quick/accessible/qaccessiblequickitem_p.h
@@ -60,6 +60,8 @@ class QAccessibleQuickItem : public QAccessibleObject, public QAccessibleActionI
public:
QAccessibleQuickItem(QQuickItem *item);
+ QWindow *window() const Q_DECL_OVERRIDE;
+
QRect rect() const;
QRect viewRect() const;