프로젝트

일반

사용자정보

개정판 a1d4a0aa

IDa1d4a0aa0f783afabfcebd59f5d4ce033b0b0125
상위 d530f374
하위 c69964e9, 27ffc4ac

gaqhf 이(가) 6년 이상 전에 추가함

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

클립보드 이미지 추가 (최대 크기: 500 MB)