[processing] fix folding in the model

Earlier commit broke the update of lines when folding  parameters in the
modeler. This one fixes it again.
This commit is contained in:
HenningJagd 2015-05-22 23:14:46 +02:00
parent 4e6394e213
commit 8c624a3452

View File

@ -100,11 +100,15 @@ class ModelerGraphicItem(QGraphicsItem):
pt = self.getLinkPointForOutput(-1)
pt = QPointF(0, pt.y())
self.outButton.position = pt
for arrow in self.arrows:
arrow.updatePath()
self.update()
def foldOutput(self, folded):
self.element.outputsFolded = folded
self.prepareGeometryChange()
for arrow in self.arrows:
arrow.updatePath()
self.update()
def addArrow(self, arrow):