MCPcopy Create free account
hub / github.com/KDE/labplot / contextMenuEvent

Method contextMenuEvent

src/backend/worksheet/WorksheetElementContainer.cpp:228–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228void WorksheetElementContainerPrivate::contextMenuEvent(QGraphicsSceneContextMenuEvent* event) {
229 scene()->clearSelection();
230 setSelected(true);
231 QMenu* menu = q->createContextMenu();
232 menu->exec(event->screenPos());
233}
234
235void WorksheetElementContainerPrivate::prepareGeometryChangeRequested() {
236 prepareGeometryChange(); // this is not const!

Callers

nothing calls this directly

Calls 3

clearSelectionMethod · 0.80
execMethod · 0.80
createContextMenuMethod · 0.45

Tested by

no test coverage detected