vcl/qt5/QtMenu.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 6c24157ea91190f02716f41d18260e9e53772765 Author: Rafael Lima <rafael.palma.l...@gmail.com> AuthorDate: Sun Jul 23 14:57:58 2023 +0200 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Wed Jul 26 08:03:15 2023 +0200 tdf#154447 Fix menu position in kf5 Prior to this patch the menus were using "topLeft" as reference for positioning the menu, which made them appear on top of the control that originated their appearance. With this patch, it now uses "bototmLeft" to place the menu below the control (similar to gtk3). Change-Id: I66b312fe09e078ec067773a483f9e59f627fcf93 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154771 Tested-by: Jenkins Tested-by: Gabor Kelemen <kelem...@ubuntu.com> Reviewed-by: Gabor Kelemen <kelem...@ubuntu.com> Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> (cherry picked from commit 7b060d1c2acf03378c87abb7215f9c0a957b549c) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154857 Reviewed-by: Rafael Lima <rafael.palma.l...@gmail.com> diff --git a/vcl/qt5/QtMenu.cxx b/vcl/qt5/QtMenu.cxx index dca03050c30e..b239b457ce9a 100644 --- a/vcl/qt5/QtMenu.cxx +++ b/vcl/qt5/QtMenu.cxx @@ -841,7 +841,7 @@ bool QtMenu::ShowNativePopupMenu(FloatingWindow* pWin, const tools::Rectangle& r assert(pFrame); const tools::Rectangle aFloatRect = FloatingWindow::ImplConvertToAbsPos(xParent, rRect); const QRect aRect = toQRect(aFloatRect, 1 / pFrame->devicePixelRatioF()); - mpQMenu->exec(aRect.topLeft()); + mpQMenu->exec(aRect.bottomLeft()); return true; }