Set screen for popup menu
This commit is contained in:
parent
1027fb5dff
commit
39176f619e
1 changed files with 6 additions and 0 deletions
|
|
@ -760,6 +760,12 @@ void PopupMenu::showMenu(const QPoint &p, PopupMenu *parent, TriggeredSource sou
|
|||
}
|
||||
_parent = parent;
|
||||
|
||||
if (_parent) {
|
||||
setScreen(_parent->screen());
|
||||
} else if (screen) {
|
||||
setScreen(screen);
|
||||
}
|
||||
|
||||
using Origin = PanelAnimation::Origin;
|
||||
auto origin = Origin::TopLeft;
|
||||
const auto forceLeft = _forcedOrigin
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue