Fix submenu navigation.
authorFriedemann Kleint <Friedemann.Kleint@digia.com>
Tue, 30 Oct 2012 10:26:40 +0000 (11:26 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 2 Nov 2012 14:18:57 +0000 (15:18 +0100)
commit0a91c9df01ec8f0c4aef9ce6e5e9bc3804fb80c2
tree866134f30e374cd81302caa8eacfeac69a7cbb24
parenta025a2fcfa70e5db99411e2ec73c0a5141619ff5
Fix submenu navigation.

Bring back code that was removed
in Qt 4: 60324267fbb8a8554e62aaf9ef01360709292320 for QTBUG-7411 .

This code reselects the submenu action of a currently opened
popup when the mouse is moved to the submenu crossing other
actions. In addition, make sure it only triggers when
the reason is not keyboard selection.

Task-number: QTBUG-20094
Change-Id: Ibb73f83e86635083aad8b1e79fc0fdd512c65754
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
src/widgets/widgets/qmenu.cpp