diff options
author | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2009-08-03 15:20:16 (GMT) |
---|---|---|
committer | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2009-08-03 16:09:02 (GMT) |
commit | 2076f150995e541308b1d8da936b3e12ab68b886 (patch) | |
tree | d5b6a6135803b31ec48af83d5a679e379b15257f /src | |
parent | 3d5ffba1a183bbe3d930158e87f65f858b78559c (diff) | |
download | Qt-2076f150995e541308b1d8da936b3e12ab68b886.zip Qt-2076f150995e541308b1d8da936b3e12ab68b886.tar.gz Qt-2076f150995e541308b1d8da936b3e12ab68b886.tar.bz2 |
Fixed "Hightlighted menu items not always selected" bug.
Menu paintEvent was not called when the mouse cursor lied
between the menu item area and the menu frame border.
Task-number: 258920
Reviewed-by: olivier
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/widgets/qmenu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qmenu.cpp b/src/gui/widgets/qmenu.cpp index 8eec0fc..0b85eec 100644 --- a/src/gui/widgets/qmenu.cpp +++ b/src/gui/widgets/qmenu.cpp @@ -2721,7 +2721,7 @@ void QMenu::mouseMoveEvent(QMouseEvent *e) QAction *action = d->actionAt(e->pos()); if (!action) { - if (d->hasHadMouse && !rect().contains(e->pos())) + if (d->hasHadMouse) d->setCurrentAction(0); return; } else if(e->buttons()) { |