| 64 | } |
| 65 | |
| 66 | void ErrorBarItem::mouseReleaseEvent(QGraphicsSceneMouseEvent* event) { |
| 67 | if (m_type == ErrorBarType::PlusDeltaX) |
| 68 | m_parentItem->setPlusDeltaXPos(pos()); |
| 69 | else if (m_type == ErrorBarType::MinusDeltaX) |
| 70 | m_parentItem->setMinusDeltaXPos(pos()); |
| 71 | else if (m_type == ErrorBarType::PlusDeltaY) |
| 72 | m_parentItem->setPlusDeltaYPos(pos()); |
| 73 | else if (m_type == ErrorBarType::MinusDeltaY) |
| 74 | m_parentItem->setMinusDeltaYPos(pos()); |
| 75 | |
| 76 | QGraphicsItem::mouseReleaseEvent(event); |
| 77 | } |
| 78 | |
| 79 | void ErrorBarItem::hoverEnterEvent(QGraphicsSceneHoverEvent*) { |
| 80 | if (m_type == ErrorBarType::PlusDeltaX || m_type == ErrorBarType::MinusDeltaX) |
nothing calls this directly
no test coverage detected