return QWidget::eventFilter(obj, event);
}
-void InformationPanelContent::configureSettings(const QList<QAction*>& customContextMenuActions)
+void InformationPanelContent::configureSettings(const QList<QAction*>& customContextMenuActions, const QPointF& pos)
{
QMenu popup(this);
// Open the popup and adjust the settings for the
// selected action.
- QAction* action = popup.exec(QCursor::pos());
+ QAction* action = popup.exec(pos.toPoint());
if (!action) {
return;
}