diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-04-15 09:51:17 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-04-15 09:51:17 (GMT) |
commit | 8f223e03effba1aef6be5e50caf7482af1d7dd8a (patch) | |
tree | 263013a746d71fa88503d8939521d8dd8e7cd3d4 /src/gui/widgets | |
parent | 4e78de5a4281bd1c27a984b13887975798573aae (diff) | |
download | Qt-8f223e03effba1aef6be5e50caf7482af1d7dd8a.zip Qt-8f223e03effba1aef6be5e50caf7482af1d7dd8a.tar.gz Qt-8f223e03effba1aef6be5e50caf7482af1d7dd8a.tar.bz2 |
The submenu of a multicolumn menu have an incorrect position
The submenu would always appear to the side of the menu instead of its
right.
Task-number: 250673
Reviewed-by: ogoffart
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/qmenu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/qmenu.cpp b/src/gui/widgets/qmenu.cpp index ed3e338..7396a9d 100644 --- a/src/gui/widgets/qmenu.cpp +++ b/src/gui/widgets/qmenu.cpp @@ -2889,8 +2889,8 @@ void QMenu::internalDelayedPopup() int subMenuOffset = style()->pixelMetric(QStyle::PM_SubMenuOverlap, 0, this); const QRect actionRect(d->actionRect(d->currentAction)); const QSize menuSize(d->activeMenu->sizeHint()); - const QPoint rightPos(mapToGlobal(QPoint(rect().right() + subMenuOffset + 1, actionRect.top()))); - const QPoint leftPos(mapToGlobal(QPoint(rect().left() - subMenuOffset - menuSize.width(), actionRect.top()))); + const QPoint rightPos(mapToGlobal(QPoint(actionRect.right() + subMenuOffset + 1, actionRect.top()))); + const QPoint leftPos(mapToGlobal(QPoint(actionRect.left() - subMenuOffset - menuSize.width(), actionRect.top()))); QPoint pos(rightPos); QMenu *caused = qobject_cast<QMenu*>(d->activeMenu->d_func()->causedPopup.widget); |