diff options
author | Michael Weghorn <[email protected]> | 2025-07-02 11:47:45 +0200 |
---|---|---|
committer | Volker Hilsheimer <[email protected]> | 2025-07-02 17:43:44 +0000 |
commit | 12cd5ef9e8a91aa281fbdd12ef4dbd85033e2659 (patch) | |
tree | 8d4745880ada8c2ec71a5dfbc2a3ab7f77c84d5f /src/gui/text/qtextdocumentlayout.cpp | |
parent | 509ccccbc9e3142212ba02af28eef4667e576b98 (diff) |
If a menu is set, QAccessibleToolButton takes it into account
for its role, for the QAccessible::State::hasPopup state
and for reporting it as an accessible child.
So far, this was only working when the menu was
directly set using QToolButton::setMenu, but not
when the menu came from the default action set
via QToolButton::setDefaultAction.
From a user perspective, that doesn't make a
difference, so also treat these equally on
the a11y layer, by taking into account the
default action's menu as well.
Fixes: QTBUG-138172
Pick-to: 6.10 6.9
Change-Id: Ida6915e983f026db7d9840542e4b5f5c14ae13e1
Reviewed-by: Volker Hilsheimer <[email protected]>
Diffstat (limited to 'src/gui/text/qtextdocumentlayout.cpp')
0 files changed, 0 insertions, 0 deletions