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:
parent
75bec8093d
commit
1422ce7ded
@ -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:
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user