summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2014-11-24 11:35:29 +0100
committerJani Heikkinen <jani.heikkinen@theqtcompany.com>2014-11-24 12:59:49 +0100
commitea099e341b5f8845be56f81b22e44a8b6cb227a2 (patch)
tree0e1a3b8f50b9fabe83ea2ea983d9524574851199
parent23c6bb1b65357df1010d9801abffd03cd7747938 (diff)
downloadqtquickcontrols-5.4.0.tar.gz
Take all offsets into account also with PlatformMenuv5.4.05.4.0
Task-number: QTBUG-42314 Change-Id: I7e63d744bbed4a5c254d6cffdc8aba4c5e37d5c3 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
-rw-r--r--src/controls/qquickmenu.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/controls/qquickmenu.cpp b/src/controls/qquickmenu.cpp
index c2e7bc30..1a125135 100644
--- a/src/controls/qquickmenu.cpp
+++ b/src/controls/qquickmenu.cpp
@@ -414,6 +414,7 @@ void QQuickMenu::__popup(const QRectF &targetRect, int atItemIndex, MenuType men
}
globalTargetRect = visualItem()->mapRectToScene(globalTargetRect);
}
+ globalTargetRect.translate(renderOffset);
m_platformMenu->setMenuType(QPlatformMenu::MenuType(menuType));
m_platformMenu->showPopup(parentWindow, globalTargetRect.toRect(), atItem ? atItem->platformItem() : 0);
} else {