개정판 a1d4a0aa
dev issue #640: attribute 선택시 아이템들 컬러표현
DTI_PID/DTI_PID/QtImageViewer.py | ||
---|---|---|
276 | 276 |
scenePos = self.mapToScene(event.pos()) |
277 | 277 |
self.command.execute(['mouseMoveEvent', event, scenePos]) |
278 | 278 |
if self.command.name == "SelectAttribute": |
279 |
attrType = self.command._type |
|
280 |
item = self.scene.itemAt(scenePos, QTransform()) |
|
281 |
if item is not None and attrType == 'Text Item' and type(item) is QEngineeringTextItem: |
|
282 |
QGraphicsView.mouseMoveEvent(self, event) |
|
283 |
elif item is not None and attrType == 'Symbol Item' and issubclass(type(item), SymbolSvgItem): |
|
284 |
QGraphicsView.mouseMoveEvent(self, event) |
|
279 |
QGraphicsView.mouseMoveEvent(self, event) |
|
280 |
#attrType = self.command._type |
|
281 |
#item = self.scene.itemAt(scenePos, QTransform()) |
|
282 |
#if item is not None and attrType == 'Text Item' and type(item) is QEngineeringTextItem: |
|
283 |
# QGraphicsView.mouseMoveEvent(self, event) |
|
284 |
#elif item is not None and attrType == 'Symbol Item' and issubclass(type(item), SymbolSvgItem): |
|
285 |
# QGraphicsView.mouseMoveEvent(self, event) |
|
286 |
#elif item is not None and attrType == 'Line Item' and type(item) is QEngineeringLineItem: |
|
287 |
# QGraphicsView.mouseMoveEvent(self, event) |
|
285 | 288 |
|
286 | 289 |
if self.command.isTreated == True: return |
287 | 290 |
except Exception as ex: |
내보내기 Unified diff