mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fixed coordinates for menu
This commit is contained in:
parent
a9e7a8f461
commit
86f062ad7e
@ -2222,5 +2222,8 @@ void RiuMainWindow::customMenuRequested(const QPoint& pos)
|
||||
menu.addAction(actions[i]);
|
||||
}
|
||||
|
||||
menu.exec(pos);
|
||||
// Qt doc: QAbstractScrollArea and its subclasses that map the context menu event to coordinates of the viewport().
|
||||
QPoint globalPos = m_projectTreeView->treeView()->viewport()->mapToGlobal(pos);
|
||||
|
||||
menu.exec(globalPos);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user