mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 09:22:13 -05:00
Fixed coordinates for menu
This commit is contained in:
1 parent
a9e7a8f461
commit
86f062ad7e
1 file changed
+4
-1
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user