If other cases cause crash, these might too perhaps Signed-off-by: falkTX <falktx@gmail.com>tags/v2.1-alpha2
@@ -45,7 +45,8 @@ from .canvasportglow import CanvasPortGlow | |||||
class CanvasBezierLine(QGraphicsPathItem): | class CanvasBezierLine(QGraphicsPathItem): | ||||
def __init__(self, item1, item2, parent): | def __init__(self, item1, item2, parent): | ||||
QGraphicsPathItem.__init__(self, parent) | |||||
QGraphicsPathItem.__init__(self) | |||||
self.setParentItem(parent) | |||||
self.item1 = item1 | self.item1 = item1 | ||||
self.item2 = item2 | self.item2 = item2 | ||||
@@ -74,7 +74,8 @@ class cb_line_t(object): | |||||
class CanvasBox(QGraphicsItem): | class CanvasBox(QGraphicsItem): | ||||
def __init__(self, group_id, group_name, icon, parent=None): | def __init__(self, group_id, group_name, icon, parent=None): | ||||
QGraphicsItem.__init__(self, parent) | |||||
QGraphicsItem.__init__(self) | |||||
self.setParentItem(parent) | |||||
# Save Variables, useful for later | # Save Variables, useful for later | ||||
self.m_group_id = group_id | self.m_group_id = group_id | ||||
@@ -43,7 +43,8 @@ from . import ( | |||||
class CanvasIcon(QGraphicsSvgItem): | class CanvasIcon(QGraphicsSvgItem): | ||||
def __init__(self, icon, name, parent): | def __init__(self, icon, name, parent): | ||||
QGraphicsSvgItem.__init__(self, parent) | |||||
QGraphicsSvgItem.__init__(self) | |||||
self.setParentItem(parent) | |||||
self.m_renderer = None | self.m_renderer = None | ||||
self.p_size = QRectF(0, 0, 0, 0) | self.p_size = QRectF(0, 0, 0, 0) | ||||
@@ -45,7 +45,8 @@ from .canvasportglow import CanvasPortGlow | |||||
class CanvasLine(QGraphicsLineItem): | class CanvasLine(QGraphicsLineItem): | ||||
def __init__(self, item1, item2, parent): | def __init__(self, item1, item2, parent): | ||||
QGraphicsLineItem.__init__(self, parent) | |||||
QGraphicsLineItem.__init__(self) | |||||
self.setParentItem(parent) | |||||
self.item1 = item1 | self.item1 = item1 | ||||
self.item2 = item2 | self.item2 = item2 | ||||
@@ -57,7 +57,8 @@ from .utils import CanvasGetFullPortName, CanvasGetPortConnectionList | |||||
class CanvasPort(QGraphicsItem): | class CanvasPort(QGraphicsItem): | ||||
def __init__(self, group_id, port_id, port_name, port_mode, port_type, is_alternate, parent): | def __init__(self, group_id, port_id, port_name, port_mode, port_type, is_alternate, parent): | ||||
QGraphicsItem.__init__(self, parent) | |||||
QGraphicsItem.__init__(self) | |||||
self.setParentItem(parent) | |||||
# Save Variables, useful for later | # Save Variables, useful for later | ||||
self.m_group_id = group_id | self.m_group_id = group_id | ||||