summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@nokia.com>2011-04-01 10:10:13 (GMT)
committerFrederik Gladhorn <frederik.gladhorn@nokia.com>2011-04-01 10:16:56 (GMT)
commit1897ca20a343121422b354a7910814ddd37abd17 (patch)
tree6dcf05dab18a66630048da132acb0916a75b8663 /src/plugins
parent504941bc50234c225f162192491815bc4d6c38cf (diff)
downloadQt-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.cpp3
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 &para
QString QAccessibleButton::text(Text t, int child) const
{
QString str;
- if (!widget()->isVisible())
- return str;
-
switch (t) {
case Accelerator:
{