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

Method contextMenuEvent

src/backend/worksheet/WorksheetElement.cpp:1104–1113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1102}
1103
1104void WorksheetElementPrivate::contextMenuEvent(QGraphicsSceneContextMenuEvent* event) {
1105 // don't show any context menu if the element is hidden which is the case
1106 // for example for axis and plot title labels. For such objects the context menu
1107 // of their parents, i.e. of axis and plot, is used.
1108 if (!q->isHidden()) {
1109 auto* menu = q->createContextMenu();
1110 if (menu)
1111 menu->exec(event->screenPos());
1112 }
1113}
1114
1115bool WorksheetElementPrivate::isHovered() const {
1116 return m_hovered;

Callers

nothing calls this directly

Calls 3

execMethod · 0.80
isHiddenMethod · 0.45
createContextMenuMethod · 0.45

Tested by

no test coverage detected