Accessibility: remove redundant role function
authorFrederik Gladhorn <frederik.gladhorn@digia.com>
Fri, 19 Oct 2012 13:08:42 +0000 (15:08 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 27 Oct 2012 18:24:43 +0000 (20:24 +0200)
The role is already set through the ctor,
no need to explicitly do it again.

Change-Id: I0027068c66b5771b628a9fe10fbfe929e7bf1554
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
src/plugins/accessible/widgets/qaccessiblewidgets.cpp
src/plugins/accessible/widgets/qaccessiblewidgets.h

index eac31b8..9d0d3f0 100644 (file)
@@ -592,11 +592,6 @@ int QAccessibleDockWidget::indexOfChild(const QAccessibleInterface *child) const
     return -1;
 }
 
-QAccessible::Role QAccessibleDockWidget::role() const
-{
-    return QAccessible::Window;
-}
-
 QRect QAccessibleDockWidget::rect() const
 {
     QRect rect;
index ec25832..b309d59 100644 (file)
@@ -275,7 +275,6 @@ public:
     int indexOfChild(const QAccessibleInterface *child) const;
     int childCount() const;
     QRect rect () const;
-    QAccessible::Role role() const;
 
     QDockWidget *dockWidget() const;
 };