개정판 1940bca9
dev issue #563: add line item uid
DTI_PID/DTI_PID/Shapes/EngineeringLineItem.py | ||
---|---|---|
30 | 30 |
2018.05.15 Jeongwoo Change method to call parent's __init__ |
31 | 31 |
humkyung 2018.06.21 add vertices to parameter |
32 | 32 |
''' |
33 |
def __init__(self, vertices=[], parent=None): |
|
33 |
def __init__(self, vertices=[], parent=None, uid=None):
|
|
34 | 34 |
from EngineeringConnectorItem import QEngineeringConnectorItem |
35 |
|
|
35 |
import uuid |
|
36 | 36 |
try: |
37 | 37 |
QGraphicsLineItem.__init__(self, parent) |
38 | 38 |
QEngineeringAbstractItem.__init__(self) |
39 | 39 |
|
40 |
self.uid = str(uuid.uuid4()) if uid is None else uid |
|
41 |
|
|
40 | 42 |
self.setPen(QPen(Qt.blue, 4, Qt.SolidLine)) # set default pen |
41 | 43 |
self.isCreated = True |
42 | 44 |
|
내보내기 Unified diff