diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-02-26 16:59:52 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-03-03 18:52:11 +0100 |
commit | b4669b919048c1dbdac2b3e9b2e79f3d023aa078 (patch) | |
tree | 40ae1e49e63baa20c93d69830ed196928039ee77 /LICENSE.GPL2 | |
parent | 23785face5a01bf63334fd32975718468d5f816e (diff) |
QMenu: hide when a QWidgetAction fires the trigged signal
QMenu hides regularly when the user interacts with it, and manages
the firing of signals based on that. It ignores if a QAction that is
added to it fires the triggered() signal programmatically.
With QWidgetActions added to the menu, the menu usually doesn't get
interacted with directly, as the widget gets the input events.
Since the action can be added to multiple menus, neither widget nor
action can interact with the menus programmatically. Instead, the
menu needs to hide when the widget action triggers.
Test included that covers the case where a QWidgetAction is added
to multiple menus that are visible. Documentation updated, and
removed a redudant paragraph as a drive-by change.
[ChangeLog][QtWidgets][QMenu] a popup menu hides when a QWidgetAction
added to it fires the triggered signal.
Change-Id: I69f378426a45c2e46cebdaa5e6f1b21c8fb03633
Fixes: QTBUG-10427
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'LICENSE.GPL2')
0 files changed, 0 insertions, 0 deletions