QMenu: Sloppy menu selection should allow hovering separators
authorGabriel de Dietrich <gabriel.dedietrich@digia.com>
Tue, 18 Mar 2014 15:27:40 +0000 (16:27 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 20 Mar 2014 10:24:29 +0000 (11:24 +0100)
commit41dd38a0e2b76b320205aa4656e855c724bc28d1
tree076355aa15f19317550b70297bf02cb3674b0fc7
parentb6e15e047d7f981cbd987e60a1adcf62a57010a1
QMenu: Sloppy menu selection should allow hovering separators

Setting the current action to 0 clears the sloppy region and
closes the submenu if we hover a separator on the way to the
submenu popup. Now, we choose not to while the sloppy delay
timer is running.

This is a backport of I9d1b1358fe64c259dc47f35db8fc8f2b19a73153
from qt/qtbase.

Task-number: QTBUG-20094
Change-Id: If4b3cff05a9bcb41cee3e49490d4cc5fc3595821
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/gui/widgets/qmenu.cpp