|
|
@@ -31,6 +31,7 @@ from PyQt5.QtWidgets import QGraphicsRectItem, QGraphicsScene |
|
|
from . import ( |
|
|
from . import ( |
|
|
canvas, |
|
|
canvas, |
|
|
CanvasBoxType, |
|
|
CanvasBoxType, |
|
|
|
|
|
CanvasIconType, |
|
|
CanvasPortType, |
|
|
CanvasPortType, |
|
|
CanvasLineType, |
|
|
CanvasLineType, |
|
|
CanvasBezierLineType, |
|
|
CanvasBezierLineType, |
|
|
@@ -295,7 +296,9 @@ class PatchScene(QGraphicsScene): |
|
|
if self.m_mouse_down_init: |
|
|
if self.m_mouse_down_init: |
|
|
self.m_mouse_down_init = False |
|
|
self.m_mouse_down_init = False |
|
|
topmost = self.itemAt(event.scenePos(), self.m_view.transform()) |
|
|
topmost = self.itemAt(event.scenePos(), self.m_view.transform()) |
|
|
self.m_mouse_rubberband = not (topmost and topmost.type() in [CanvasBoxType, CanvasPortType]) |
|
|
|
|
|
|
|
|
self.m_mouse_rubberband = not (topmost and topmost.type() in [CanvasBoxType, |
|
|
|
|
|
CanvasIconType, |
|
|
|
|
|
CanvasPortType]) |
|
|
|
|
|
|
|
|
if self.m_mouse_rubberband: |
|
|
if self.m_mouse_rubberband: |
|
|
event.accept() |
|
|
event.accept() |
|
|
|