diff options
author | Frederik Gladhorn <frederik.gladhorn@nokia.com> | 2011-05-05 16:51:59 (GMT) |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@nokia.com> | 2011-06-10 09:36:34 (GMT) |
commit | b99344a7ec3e863da2d84f2ca5fd7e478cb18066 (patch) | |
tree | 84cbfd336f7261424fb6a175835bcb3daec09242 | |
parent | 683d391480cf81b4cd1db7d36fa366fc2c7db5e1 (diff) | |
download | Qt-b99344a7ec3e863da2d84f2ca5fd7e478cb18066.zip Qt-b99344a7ec3e863da2d84f2ca5fd7e478cb18066.tar.gz Qt-b99344a7ec3e863da2d84f2ca5fd7e478cb18066.tar.bz2 |
QAccessibleToolButton::text should return accessibleName if set.
This was most likely a copy and paste error.
Reviewed-by: Denis Dzyubenko
-rw-r--r-- | src/plugins/accessible/widgets/simplewidgets.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/accessible/widgets/simplewidgets.cpp b/src/plugins/accessible/widgets/simplewidgets.cpp index a544a31..554e7f3 100644 --- a/src/plugins/accessible/widgets/simplewidgets.cpp +++ b/src/plugins/accessible/widgets/simplewidgets.cpp @@ -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; |