개정판 452ba9c5
issue #641: fix scene
Change-Id: I804f376480e2e6095fb69cc73aad1fdd3447809f
DTI_PID/DTI_PID/Commands/HighlightCommand.py | ||
---|---|---|
50 | 50 |
rect.setHeight(rect.height() + FIT_WINDOW_SIZE * 2) |
51 | 51 |
topLeft = rect.topLeft() |
52 | 52 |
bottomRight = rect.bottomRight() |
53 |
self.imageViewer.scene.clearSelection() |
|
53 |
self.imageViewer.scene().clearSelection()
|
|
54 | 54 |
self.imageViewer.updateViewer(QRectF(topLeft.x(), topLeft.y(), bottomRight.x() - topLeft.x(), |
55 | 55 |
bottomRight.y() - topLeft.y())) |
56 | 56 |
|
... | ... | |
71 | 71 |
rect.setHeight(rect.height() + FIT_WINDOW_SIZE * 2) |
72 | 72 |
topLeft = rect.topLeft() |
73 | 73 |
bottomRight = rect.bottomRight() |
74 |
self.imageViewer.scene.clearSelection() |
|
74 |
self.imageViewer.scene().clearSelection()
|
|
75 | 75 |
self.imageViewer.updateViewer(QRectF(topLeft.x(), topLeft.y(), bottomRight.x() - topLeft.x(), |
76 | 76 |
bottomRight.y() - topLeft.y())) |
77 | 77 |
|
... | ... | |
91 | 91 |
rect.setHeight(rect.height() + FIT_WINDOW_SIZE*2) |
92 | 92 |
topLeft = rect.topLeft() |
93 | 93 |
bottomRight = rect.bottomRight() |
94 |
self.imageViewer.scene.clearSelection() |
|
94 |
self.imageViewer.scene().clearSelection()
|
|
95 | 95 |
self.imageViewer.updateViewer(QRectF(topLeft.x(), topLeft.y(), bottomRight.x() - topLeft.x(), |
96 | 96 |
bottomRight.y() - topLeft.y())) |
97 | 97 |
|
DTI_PID/DTI_PID/Commands/SelectAttributeCommand.py | ||
---|---|---|
62 | 62 |
from EngineeringReservedWordTextItem import QEngineeringReservedWordTextItem |
63 | 63 |
|
64 | 64 |
if self._attr is not None and type(self._attr) is SymbolAttr: |
65 |
item = self.imageViewer.scene.itemAt(scenePos, QTransform()) |
|
65 |
item = self.imageViewer.scene().itemAt(scenePos, QTransform())
|
|
66 | 66 |
if False:#item is not None and self._attr.AttributeType == 'Line Item' and issubclass(type(item), QEngineeringLineItem): |
67 | 67 |
# unused code |
68 | 68 |
self._item.conns.clear() |
... | ... | |
117 | 117 |
self.onSuccess.emit() |
118 | 118 |
break |
119 | 119 |
elif self._attr is not None and type(self._attr) is SymbolProp: |
120 |
item = self.imageViewer.scene.itemAt(scenePos, QTransform()) |
|
120 |
item = self.imageViewer.scene().itemAt(scenePos, QTransform())
|
|
121 | 121 |
if item is not None and self._attr.match_type(item): |
122 | 122 |
self._item.set_property(self._attr.Attribute, item) |
123 | 123 |
if issubclass(type(item), QEngineeringTextItem): item.owner = self._item |
내보내기 Unified diff