개정판 b06d26b5
issue #000 DefaultCommand 수정.
HYTOS/HYTOS/Commands/DefaultCommand.py | ||
---|---|---|
54 | 54 |
|
55 | 55 |
try: |
56 | 56 |
if not self.isCopy: |
57 |
if 'mousePressEvent' == param[0] and (event.button() == Qt.RightButton or event.button() == Qt.MiddleButton):
|
|
57 |
if 'mousePressEvent' == param[0] and event.button() == Qt.MiddleButton:
|
|
58 | 58 |
self.imageViewer.setDragMode(QGraphicsView.ScrollHandDrag) |
59 | 59 |
QGraphicsView.mousePressEvent(self.imageViewer, QMouseEvent(QEvent.MouseButtonPress, event.pos(), Qt.LeftButton, event.buttons(), Qt.NoModifier)) |
60 |
elif 'mouseReleaseEvent' == param[0] and (event.button() == Qt.RightButton or event.button() == Qt.MiddleButton):
|
|
60 |
elif 'mouseReleaseEvent' == param[0] and event.button() == Qt.MiddleButton:
|
|
61 | 61 |
try: |
62 | 62 |
self.imageViewer.setDragMode(QGraphicsView.NoDrag) |
63 | 63 |
finally: |
내보내기 Unified diff