| 3763 | // ############################################################################## |
| 3764 | |
| 3765 | void CartesianPlotPrivate::contextMenuEvent(QGraphicsSceneContextMenuEvent* event) { |
| 3766 | const auto* cSystem{defaultCoordinateSystem()}; |
| 3767 | scenePos = event->pos(); |
| 3768 | if (!cSystem->isValid()) |
| 3769 | return; |
| 3770 | logicalPos = cSystem->mapSceneToLogical(scenePos, AbstractCoordinateSystem::MappingFlag::Limit); |
| 3771 | calledFromContextMenu = true; |
| 3772 | auto* menu = q->createContextMenu(); |
| 3773 | Q_EMIT q->contextMenuRequested(q->AbstractAspect::type(), menu); |
| 3774 | } |
| 3775 | |
| 3776 | /*! |
| 3777 | * \brief CartesianPlotPrivate::mousePressEvent |
nothing calls this directly
no test coverage detected