|
|
@ -577,6 +577,12 @@ void UBBoardView::handleItemMousePress(QMouseEvent *event) |
|
|
|
{ |
|
|
|
{ |
|
|
|
mLastPressedMousePos = mapToScene(event->pos()); |
|
|
|
mLastPressedMousePos = mapToScene(event->pos()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach (QGraphicsItem *item, scene()->items()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (movingItem != item) |
|
|
|
|
|
|
|
item->setSelected(false); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (itemShouldReceiveMousePressEvent(movingItem)) |
|
|
|
if (itemShouldReceiveMousePressEvent(movingItem)) |
|
|
|
QGraphicsView::mousePressEvent (event); |
|
|
|
QGraphicsView::mousePressEvent (event); |
|
|
|
else |
|
|
|
else |
|
|
|