diff options
author | Frederik Gladhorn <frederik.gladhorn@nokia.com> | 2011-04-01 10:10:13 (GMT) |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@nokia.com> | 2011-04-01 10:16:56 (GMT) |
commit | 1897ca20a343121422b354a7910814ddd37abd17 (patch) | |
tree | 6dcf05dab18a66630048da132acb0916a75b8663 /src/plugins | |
parent | 504941bc50234c225f162192491815bc4d6c38cf (diff) | |
download | Qt-1897ca20a343121422b354a7910814ddd37abd17.zip Qt-1897ca20a343121422b354a7910814ddd37abd17.tar.gz Qt-1897ca20a343121422b354a7910814ddd37abd17.tar.bz2 |
Let QAccessibleButton::text return something even when not visible.
Buttons would not report their text when hidden, which is inconsistent.
Reviewed-by: Jan-Arve
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/accessible/widgets/simplewidgets.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/plugins/accessible/widgets/simplewidgets.cpp b/src/plugins/accessible/widgets/simplewidgets.cpp index 1510292..afd2c80 100644 --- a/src/plugins/accessible/widgets/simplewidgets.cpp +++ b/src/plugins/accessible/widgets/simplewidgets.cpp @@ -155,9 +155,6 @@ bool QAccessibleButton::doAction(int action, int child, const QVariantList ¶ QString QAccessibleButton::text(Text t, int child) const { QString str; - if (!widget()->isVisible()) - return str; - switch (t) { case Accelerator: { |