| 1102 | } |
| 1103 | |
| 1104 | void 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 | |
| 1115 | bool WorksheetElementPrivate::isHovered() const { |
| 1116 | return m_hovered; |
nothing calls this directly
no test coverage detected