개정판 c1cbaa3a
issue #000: minor fix
Change-Id: I8b345342c1a2867587b7f6819baef7ac0c6fa4e4
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
1618 | 1618 |
match.owner = None |
1619 | 1619 |
|
1620 | 1620 |
matches = [_item for _item in self.graphicsView.scene.items() if hasattr(_item, 'attrs')] |
1621 |
done = False |
|
1621 |
#done = False
|
|
1622 | 1622 |
for match in matches: |
1623 | 1623 |
for assoc in match.associations(): |
1624 | 1624 |
if item is assoc: |
... | ... | |
1626 | 1626 |
if str(item.uid) == str(attr.AssocItem.uid): |
1627 | 1627 |
attr.AssocItem = None |
1628 | 1628 |
match.attrs[attr] = '' |
1629 |
done = True |
|
1630 |
break |
|
1629 |
#done = True |
|
1631 | 1630 |
match.remove_assoc_item(item) |
1632 | 1631 |
break |
1633 |
if done: break |
|
1632 |
#if done: break
|
|
1634 | 1633 |
|
1635 | 1634 |
#if type(item) is QEngineeringFlowMarkItem and item.parentItem(): |
1636 | 1635 |
# if item in item.parentItem()._flowMark: |
DTI_PID/DTI_PID/Shapes/EngineeringConnectorItem.py | ||
---|---|---|
270 | 270 |
from EngineeringTextItem import QEngineeringTextItem |
271 | 271 |
|
272 | 272 |
try: |
273 |
if self.parentItem() is not None and self._savedPos is not None: |
|
273 |
if self.parentItem() is not None and hasattr(self, '_savePos') and self._savedPos is not None:
|
|
274 | 274 |
items = [item for item in self.scene().items(event.scenePos()) if item is not self and item is not self.parentItem() and \ |
275 | 275 |
(issubclass(type(item), SymbolSvgItem) or issubclass(type(item), QEngineeringTextItem) or issubclass(type(item), QEngineeringLineItem) or type(item) is QEngineeringConnectorItem)] |
276 | 276 |
|
... | ... | |
347 | 347 |
from EngineeringArrowItem import QEngineeringArrowItem |
348 | 348 |
from EngineeringTextItem import QEngineeringTextItem |
349 | 349 |
|
350 |
if self.parentItem() is not None and self._savedPos is not None: |
|
350 |
if self.parentItem() is not None and hasattr(self, '_savePos') and self._savedPos is not None:
|
|
351 | 351 |
if event.buttons() == Qt.LeftButton: |
352 | 352 |
items = [item for item in self.scene().items(event.scenePos()) if item is not self and item is not self.parent and \ |
353 | 353 |
(issubclass(type(item), SymbolSvgItem) or issubclass(type(item), QEngineeringTextItem) or issubclass(type(item), QEngineeringLineItem) or type(item) is QEngineeringConnectorItem)] |
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py | ||
---|---|---|
836 | 836 |
''' |
837 | 837 |
def mouseDoubleClickEvent(self, event): |
838 | 838 |
from RotateSymbolDialog import QRotateSymbolDialog |
839 |
from EngineeringErrorItem import QEngineeringErrorItem |
|
840 |
|
|
841 |
if type(self) is QEngineeringErrorItem: return |
|
842 |
|
|
839 | 843 |
dialog = QRotateSymbolDialog(None, self.angle, self.origin, self.zValue()) |
840 | 844 |
(isAccept, angle, x, y, z) = dialog.showDialog() |
841 | 845 |
|
내보내기 Unified diff