개정판 26195784
issue #000: fix save and load
Change-Id: Id5e699028ff9c023d835c36123c549a36645abd4
DTI_PID/DTI_PID/Shapes/GraphicsBoundingBoxItem.py | ||
---|---|---|
72 | 72 |
self.connectors.append(connector) |
73 | 73 |
## up to here |
74 | 74 |
|
75 |
self.setFlags(QGraphicsItem.ItemIsSelectable|QGraphicsItem.ItemIsFocusable) |
|
75 | 76 |
self.transfer = Transfer() |
76 | 77 |
|
78 |
def keyPressEvent(self, event): |
|
79 |
if self.isSelected() and event.key() == Qt.Key_Delete: |
|
80 |
self.scene().removeItem(self) |
|
81 |
|
|
77 | 82 |
''' |
78 | 83 |
@brief reshape rectangle |
79 | 84 |
@author humkyung |
DTI_PID/DTI_PID/XmlGenerator.py | ||
---|---|---|
374 | 374 |
from EngineeringValveOperCodeTextItem import QEngineeringValveOperCodeTextItem |
375 | 375 |
from SymbolSvgItem import SymbolSvgItem |
376 | 376 |
from EngineeringVendorItem import QEngineeringVendorItem |
377 |
from GraphicsBoundingBoxItem import QGraphicsBoundingBoxItem |
|
377 | 378 |
|
378 | 379 |
appDocData = AppDocData.instance() |
379 | 380 |
items = [] |
... | ... | |
413 | 414 |
node = item.toXml(name='SIZE') |
414 | 415 |
elif type(item) is QEngineeringValveOperCodeTextItem: |
415 | 416 |
node = item.toXml(name='VALVE OPER CODE') |
416 |
elif issubclass(type(item), QEngineeringAbstractItem): |
|
417 |
elif issubclass(type(item), QEngineeringAbstractItem) and type(item) is not QGraphicsBoundingBoxItem:
|
|
417 | 418 |
node = item.toXml() |
418 | 419 |
else: |
419 | 420 |
continue |
내보내기 Unified diff