Let QAccessibleButton::text return something even when not visible.

Buttons would not report their text when hidden, which is inconsistent.
Reviewed-by: Jan-Arve
(cherry picked from commit 1897ca20a343121422b354a7910814ddd37abd17)
This commit is contained in:
Frederik Gladhorn 2011-04-01 12:10:13 +02:00 committed by Olivier Goffart
parent 75bec8093d
commit 1422ce7ded

View File

@ -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:
{