프로젝트

일반

사용자정보

개정판 9667a2fd

ID9667a2fdeee98eaf587a350b29f95fc9abeb2636
상위 fe5e4b3c
하위 29c65a8e, 4a0f6cb5

함의성이(가) 2년 이상 전에 추가함

improve pen operation

Change-Id: I63f71ae389ce240a41fb88a7e1d1f5b91b78b826

차이점 보기:

DTI_PID/DTI_PID/Commands/DefaultCommand.py
59 59
                if 'mousePressEvent' == param[0] and (event.button() == Qt.MiddleButton or
60 60
                                                      event.button() == Qt.RightButton):
61 61
                    self.imageViewer.setDragMode(QGraphicsView.ScrollHandDrag)
62
                    self.imageViewer.setInteractive(False)
63
                    #[item.setEnabled(False) for item in self.imageViewer.scene().items() if issubclass(type(item), SymbolSvgItem)]
64
                    #[item.setAcceptHoverEvents(False) for item in self.imageViewer.scene().items() if issubclass(type(item), SymbolSvgItem)]
62 65
                    QGraphicsView.mousePressEvent(self.imageViewer, QMouseEvent(QEvent.MouseButtonPress, event.pos(), Qt.LeftButton, event.buttons(), Qt.NoModifier))
63 66
                elif 'mouseReleaseEvent' == param[0] and (event.button() == Qt.MiddleButton or
64 67
                                                          event.button() == Qt.RightButton):
65 68
                    try:
66 69
                        self.imageViewer.setDragMode(QGraphicsView.NoDrag)
70
                        self.imageViewer.setInteractive(True)
67 71
                    finally:
68 72
                        QGraphicsView.mouseReleaseEvent(self.imageViewer, QMouseEvent(QEvent.MouseButtonRelease, event.pos(), Qt.LeftButton, event.buttons(), Qt.NoModifier))
69 73
                        pass

내보내기 Unified diff

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