QAccessibleToolButton::text should return accessibleName if set.
authorFrederik Gladhorn <frederik.gladhorn@nokia.com>
Thu, 5 May 2011 16:51:59 +0000 (18:51 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 16 Aug 2011 13:07:27 +0000 (15:07 +0200)
This was most likely a copy and paste error.

Reviewed-by: Denis Dzyubenko
(cherry picked from commit e29ef45e404dbe888c0848eb28317a10b2aff768)

Change-Id: I55dec5b9d101f9015f97cf453dc804d3cc22db8d
Reviewed-on: http://codereview.qt.nokia.com/3018
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
src/plugins/accessible/widgets/simplewidgets.cpp

index b768904..1b10a7b 100644 (file)
@@ -396,7 +396,7 @@ QString QAccessibleToolButton::text(Text t, int child) const
     QString str;
     switch (t) {
     case Name:
-        str = toolButton()->text();
+        str = toolButton()->accessibleName();
         if (str.isEmpty())
             str = toolButton()->text();
         break;