|
|
|
@ -596,7 +596,7 @@ void UBBoardView::handleItemMousePress(QMouseEvent *event) |
|
|
|
|
mLastPressedMousePos = mapToScene(event->pos()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (movingItem && QGraphicsSvgItem::Type != movingItem->type() |
|
|
|
|
if (movingItem && !hasSelectedParents(movingItem) && QGraphicsSvgItem::Type != movingItem->type() |
|
|
|
|
&& UBGraphicsDelegateFrame::Type != movingItem->type() |
|
|
|
|
&& !mMultipleSelectionIsEnabled) |
|
|
|
|
{ |
|
|
|
@ -1405,3 +1405,13 @@ UBBoardView::setToolCursor (int tool) |
|
|
|
|
controlViewport->setCursor (UBResources::resources ()->penCursor); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool UBBoardView::hasSelectedParents(QGraphicsItem * item) |
|
|
|
|
{ |
|
|
|
|
if (item->isSelected()) |
|
|
|
|
return true; |
|
|
|
|
if (item->parentItem()==NULL) |
|
|
|
|
return false; |
|
|
|
|
return hasSelectedParents(item->parentItem()); |
|
|
|
|
} |
|
|
|
|