개정판 fe0bc5d7
issue #000: fix bounding box and fix typo in db
Change-Id: I8d23db8c0a742d277362e0adcac4003e83520c1a
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
2406 | 2406 |
item.angle = angle |
2407 | 2407 |
item.setPen(QPen(Qt.red, 5, Qt.SolidLine)) |
2408 | 2408 |
self.graphicsView.scene.addItem(item) |
2409 |
item.transfer.onRemoved.connect(self.itemRemoved) |
|
2409 | 2410 |
|
2410 | 2411 |
self.progress.setValue(self.progress.value() + 1) |
2411 | 2412 |
|
DTI_PID/DTI_PID/RecognitionDialog.py | ||
---|---|---|
22 | 22 |
from EngineeringLineItem import QEngineeringLineItem |
23 | 23 |
from EngineeringTextItem import QEngineeringTextItem |
24 | 24 |
from EngineeringLineNoTextItem import QEngineeringLineNoTextItem |
25 |
from GraphicsBoundingBoxItem import QGraphicsBoundingBoxItem |
|
25 | 26 |
from LineDetector import LineDetector |
26 | 27 |
from symbol import Symbol |
27 | 28 |
|
... | ... | |
232 | 233 |
for item in items: |
233 | 234 |
item.transfer.onRemoved.emit(item) |
234 | 235 |
#worker.graphicsView.scene.removeItem(item) |
236 |
for item in [item for item in worker.graphicsView.scene.items() if type(item) is QGraphicsBoundingBoxItem]: |
|
237 |
item.transfer.onRemoved.emit(item) |
|
235 | 238 |
|
236 | 239 |
#up to here |
237 | 240 |
|
DTI_PID/DTI_PID/Shapes/EngineeringAbstractItem.py | ||
---|---|---|
206 | 206 |
for attr in symbolAttrs: |
207 | 207 |
if attr.Target is None or attr.Target == 'ALL' or [target for target in attr.Target.split(',') if self.dbUid is int(target)]: |
208 | 208 |
targetAttrs.append(attr) |
209 |
else: |
|
210 |
targetAttrs = symbolAttrs |
|
209 | 211 |
|
210 | 212 |
_texts = self.texts() |
211 | 213 |
_symbols = self.symbols() |
내보내기 Unified diff