Commit 785049dc authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Disable the hidden Close button to prevent problem with screen reader

For some reason the screen reader "reads" the Close button even if it's
hidden. It seems that Qt somehow gives it (local) focus, but not
application wide focus.

GnuPG-bug-id: 5535
parent d6582a49
Pipeline #76497 passed with stage
in 15 minutes and 52 seconds
......@@ -73,6 +73,7 @@ ResultListWidget::Private::Private(ResultListWidget *qq)
q->connect(m_closeButton, &QPushButton::clicked, q, &ResultListWidget::close);
m_layout->addWidget(m_closeButton);
m_closeButton->setVisible(false);
m_closeButton->setEnabled(false);
}
ResultListWidget::ResultListWidget(QWidget *parent, Qt::WindowFlags f) : QWidget(parent, f), d(new Private(this))
......@@ -206,6 +207,7 @@ void ResultListWidget::setStandaloneMode(bool standalone)
return;
}
d->m_closeButton->setVisible(standalone);
d->m_closeButton->setEnabled(standalone);
d->m_progressLabel->setVisible(standalone);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment