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:
parent
ddb0b4a838
commit
fe59af2c00
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user