summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-09-14 12:04:48 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-09-14 12:17:03 (GMT)
commit41dbc4406791f82b7e3c1385acc594e22b5b0799 (patch)
treedb7790dbe00da246f91936cae9371da946e50bb4 /src
parent30d958f87e6f244d4e8b6704d31e07940a874d02 (diff)
downloadQt-41dbc4406791f82b7e3c1385acc594e22b5b0799.zip
Qt-41dbc4406791f82b7e3c1385acc594e22b5b0799.tar.gz
Qt-41dbc4406791f82b7e3c1385acc594e22b5b0799.tar.bz2
Fix QMenuBar hover effect.
Regression introduced by commit 21cf7b4c431742 Task-number: 261199 Reviewed-by: Prasanth
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/qmenubar.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/widgets/qmenubar.cpp b/src/gui/widgets/qmenubar.cpp
index d5a7982..8591a77 100644
--- a/src/gui/widgets/qmenubar.cpp
+++ b/src/gui/widgets/qmenubar.cpp
@@ -1252,9 +1252,7 @@ void QMenuBar::keyPressEvent(QKeyEvent *e)
void QMenuBar::mouseMoveEvent(QMouseEvent *e)
{
Q_D(QMenuBar);
- bool popupState = d->popupState || e->buttons() & Qt::LeftButton;
- if (!d->mouseDown || !popupState)
- return;
+ bool popupState = d->popupState || d->mouseDown;
QAction *action = d->actionAt(e->pos());
if (action && d->isVisible(action))
d->setCurrentAction(action, popupState);