QAccessibleToolButton::text should return accessibleName if set.

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>
This commit is contained in:
Frederik Gladhorn 2011-05-05 18:51:59 +02:00 committed by Qt by Nokia
parent ddb0b4a838
commit fe59af2c00

View 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;