ContextMenu: Fix stacking order
Unset parent item
Manual binding for parent is overridden by popup() method that sets it to a new target item every time.
Delegate stacking to OverlayZStacking
We have now a whole dedicated infrastructure for this. The actual z index property is expected to be set in the QQC2.Menu type which is conveniently in this same repo under our control.
Reset parent on close
The comment in code explains it all.
Make it modal
Like a real desktop menu which it pretends to be.
Edited by ivan tkachenko