개정판 17e67b4f
issue #563: clear nozzle item
Change-Id: I9b8e9d9ac580c0270dec2e23fa401d874253ac00
DTI_PID/DTI_PID/Shapes/EngineeringNozzleItem.py | ||
---|---|---|
12 | 12 |
from EngineeringConnectorItem import QEngineeringConnectorItem |
13 | 13 |
|
14 | 14 |
class QEngineeringNozzleItem(SymbolSvgItem): |
15 |
ZVALUE = 20 |
|
16 |
clicked = pyqtSignal(QGraphicsSvgItem) |
|
17 |
|
|
18 |
''' |
|
19 |
''' |
|
20 | 15 |
def __init__(self, path, uid=None, flip=0): |
21 | 16 |
SymbolSvgItem.__init__(self, None, path, uid, flip=flip) |
22 | 17 |
|
23 |
self._props = [['Name', None], ['Size', None]] |
|
24 |
self.setZValue(QEngineeringNozzleItem.ZVALUE) |
|
18 |
#self._props = [['Name', None], ['Size', None]] |
|
25 | 19 |
|
26 | 20 |
''' |
27 | 21 |
@brief getter of property |
28 | 22 |
@author humkyung |
29 | 23 |
@date 2018.07.29 |
30 | 24 |
''' |
25 |
''' |
|
31 | 26 |
@property |
32 | 27 |
def props(self): |
33 | 28 |
return self._props |
29 |
''' |
|
34 | 30 |
|
35 | 31 |
''' |
36 | 32 |
@brief connect attribute |
37 | 33 |
@author humkyung |
38 | 34 |
@date 2018.07.19 |
39 | 35 |
''' |
36 |
''' |
|
40 | 37 |
def connectAttribute(self, attributes, clear=True): |
41 | 38 |
from QEngineeringTagNoTextItem import QEngineeringTagNoTextItem |
42 | 39 |
|
... | ... | |
65 | 62 |
|
66 | 63 |
if selected is not None: |
67 | 64 |
self.attrs.append(selected) |
68 |
selected.onwer = self |
|
65 |
selected.onwer = self |
|
66 |
''' |
내보내기 Unified diff