Say hello to QWindow::accessibleRoot()
authorJan-Arve Saether <jan-arve.saether@nokia.com>
Fri, 16 Sep 2011 11:33:07 +0000 (13:33 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 19 Sep 2011 10:06:13 +0000 (12:06 +0200)
Change-Id: I1efa71f01f8af46c9addf2aae21e4b6fc086ad2e
Reviewed-on: http://codereview.qt-project.org/5087
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
src/gui/kernel/qwindow.cpp
src/gui/kernel/qwindow.h

index 54ff2dd..d8e0288 100644 (file)
@@ -495,6 +495,15 @@ void QWindow::setScreen(QScreen *newScreen)
         create();
 }
 
+/*!
+  Returns the accessibility interface for the object that the window represents
+  */
+QAccessibleInterface *QWindow::accessibleRoot() const
+{
+    return 0;
+}
+
+
 void QWindow::showMinimized()
 {
     qDebug() << "unimplemented:" << __FILE__ << __LINE__;
index 53d78c4..0a74e64 100644 (file)
@@ -74,6 +74,7 @@ class QPlatformSurface;
 class QPlatformWindow;
 class QBackingStore;
 class QScreen;
+class QAccessibleInterface;
 
 class Q_GUI_EXPORT QWindow : public QObject, public QSurface
 {
@@ -168,6 +169,8 @@ public:
     QScreen *screen() const;
     void setScreen(QScreen *screen);
 
+    virtual QAccessibleInterface *accessibleRoot() const;
+
     QPoint mapToGlobal(const QPoint &pos) const;
     QPoint mapFromGlobal(const QPoint &pos) const;