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

Method ErrorBarItem

src/backend/datapicker/DatapickerPoint.cpp:33–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 */
32
33ErrorBarItem::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
45void ErrorBarItem::initRect() {
46 QRectF xBarRect(-0.15, -0.5, 0.3, 1);

Callers

nothing calls this directly

Calls 2

setFlagFunction · 0.85
graphicsItemMethod · 0.45

Tested by

no test coverage detected