| 31 | */ |
| 32 | |
| 33 | ErrorBarItem::ErrorBarItem(DatapickerPoint* parent, ErrorBarType type) |
| 34 | : QGraphicsRectItem(parent->graphicsItem()) |
| 35 | , barLineItem(new QGraphicsLineItem(parent->graphicsItem())) |
| 36 | , m_type(type) |
| 37 | , m_parentItem(parent) { |
| 38 | setFlag(QGraphicsItem::ItemIsMovable); |
| 39 | setFlag(QGraphicsItem::ItemIsSelectable); |
| 40 | setFlag(QGraphicsItem::ItemSendsGeometryChanges); |
| 41 | initRect(); |
| 42 | setAcceptHoverEvents(true); |
| 43 | } |
| 44 | |
| 45 | void ErrorBarItem::initRect() { |
| 46 | QRectF xBarRect(-0.15, -0.5, 0.3, 1); |
nothing calls this directly
no test coverage detected