MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / Edge

Method Edge

Gui/Edge.cpp:122–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120};
121
122Edge::Edge(int inputNb_,
123 double angle_,
124 const NodeGuiPtr & dest_,
125 QGraphicsItem *parent)
126 : QGraphicsLineItem(parent)
127 , _imp( new EdgePrivate(this, inputNb_, angle_) )
128{
129 _imp->dest = dest_;
130
131 setPen( QPen(Qt::black, 2, Qt::SolidLine, Qt::SquareCap, Qt::BevelJoin) );
132 _imp->initLabel();
133 setAcceptedMouseButtons(Qt::LeftButton);
134 initLine();
135 //setFlag(QGraphicsItem::ItemStacksBehindParent);
136 setZValue(15);
137 refreshState(false);
138}
139
140void
141EdgePrivate::initLabel()

Callers

nothing calls this directly

Calls 1

initLabelMethod · 0.80

Tested by

no test coverage detected