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

Use a simple QWidget instead of a QScrollArea for the animated expander

Replacing the layout of the QScrollArea (with its internal widget/layout
hierarchy) messes up the widget hierarchy for accessibility tools, so
that screen readers (at least orca) do not read the texts of any widgets
in the content area of the animated expander. Using a simple QWidget
fixes this problem.

GnuPG-bug-id: 6046
parent 19c02792
......@@ -67,7 +67,7 @@ private:
QToolButton toggleButton;
QFrame headerLine;
QParallelAnimationGroup toggleAnimation;
QScrollArea contentArea;
QWidget contentArea;
int animationDuration{300};
......@@ -85,7 +85,6 @@ AnimatedExpander::AnimatedExpander(const QString &title, QWidget *parent):
headerLine.setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum);
contentArea.setStyleSheet(QStringLiteral("QScrollArea { border: none; }"));
contentArea.setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
// start out collapsed
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