https://bugs.kde.org/show_bug.cgi?id=500978

--- Comment #10 from Christoph Cullmann <christ...@cullmann.dev> ---
Git commit 70c702536ab24f15d36c8fd6003de866290ed8fe by Christoph Cullmann, on
behalf of Vlad Zahorodnii.
Committed on 02/06/2025 at 16:10.
Pushed by cullmann into branch 'master'.

Fix popup transient parents

Currently, the KXMLGUIBuilder forces the QMainWindow as the transient
parent for QMenu objects. The age of this code is more than 20 years.

In Qt 6, a normal QWidget can be a parent of a QMenu. In that case, the
QMenu will walk the widget tree and use the nearest widget with a
native window as the transient parent.

This change relaxes the restrictions in the KXMLGUIBuilder, so the
QMenu can do the right thing for us. Note that a menu can be the
toplevel element. In that case, the container widget is used as the
transient parent.

Co-authored-by: Christoph Cullmann <christ...@cullmann.dev>

M  +4    -15   src/kxmlguibuilder.cpp

https://invent.kde.org/frameworks/kxmlgui/-/commit/70c702536ab24f15d36c8fd6003de866290ed8fe

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to