qt5base-lts/tests/auto/widgets
Volker Hilsheimer b4669b9190 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>
2020-03-03 18:52:11 +01:00
..
dialogs QWizard: deprecate visitedPages and add visitedIds instead 2020-02-27 19:35:19 +01:00
effects tst_qgraphicseffect: Wait for exposed instead of active 2019-10-15 20:39:32 +02:00
graphicsview Merge remote-tracking branch 'origin/5.14' into 5.15 2020-02-29 01:00:44 +01:00
itemviews Merge remote-tracking branch 'origin/5.14' into 5.15 2020-02-24 08:40:45 +01:00
kernel Merge remote-tracking branch 'origin/5.14' into 5.15 2020-02-26 01:00:08 +01:00
styles Merge remote-tracking branch 'origin/5.14' into 5.15 2020-01-15 01:00:39 +01:00
util Merge remote-tracking branch 'origin/5.14' into 5.15 2020-01-28 08:09:51 +01:00
widgets QMenu: hide when a QWidgetAction fires the trigged signal 2020-03-03 18:52:11 +01:00
widgets.pro Move QGestureRecognizer test to widgets/kernel 2017-06-02 18:36:11 +00:00