Fix parent passed to constant setting menus
Parent QWidget is not just used for memory management but also for widget positioning.
Having as parent the main window rather than the direct parent widget, makes the menu being positioned relative to the parent window under Wayland.
Relates to https://bugreports.qt.io/browse/QTBUG-68636, fixes the kcalc case
Edited by Méven Car