| 1205 | } |
| 1206 | |
| 1207 | bool InfoElementPrivate::activate(QPointF mouseScenePos, double /*maxDist*/) { |
| 1208 | if (!isVisible()) |
| 1209 | return false; |
| 1210 | |
| 1211 | return m_shape.contains(mouseScenePos); |
| 1212 | } |
| 1213 | |
| 1214 | void InfoElementPrivate::contextMenuEvent(QGraphicsSceneContextMenuEvent* event) { |
| 1215 | if (activate(event->pos())) { |
no test coverage detected