|
|
@ -534,12 +534,7 @@ Here we determines cases when items should to get mouse press event at pressing |
|
|
|
case UBGraphicsTriangle::Type: |
|
|
|
case UBGraphicsTriangle::Type: |
|
|
|
case UBGraphicsCompass::Type: |
|
|
|
case UBGraphicsCompass::Type: |
|
|
|
case UBGraphicsCache::Type: |
|
|
|
case UBGraphicsCache::Type: |
|
|
|
return true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case UBGraphicsDelegateFrame::Type: |
|
|
|
case UBGraphicsDelegateFrame::Type: |
|
|
|
case QGraphicsSvgItem::Type: |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case DelegateButton::Type: |
|
|
|
case DelegateButton::Type: |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
|
|
|
|
|
|
|
@ -1233,7 +1228,6 @@ void UBBoardView::mouseReleaseEvent (QMouseEvent *event) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (isUBItem(movingItem) && |
|
|
|
if (isUBItem(movingItem) && |
|
|
|
DelegateButton::Type != movingItem->type() && |
|
|
|
DelegateButton::Type != movingItem->type() && |
|
|
|
QGraphicsSvgItem::Type != movingItem->type() && |
|
|
|
|
|
|
|
UBGraphicsDelegateFrame::Type != movingItem->type() && |
|
|
|
UBGraphicsDelegateFrame::Type != movingItem->type() && |
|
|
|
UBGraphicsCache::Type != movingItem->type() && |
|
|
|
UBGraphicsCache::Type != movingItem->type() && |
|
|
|
QGraphicsWebView::Type != movingItem->type() && // for W3C widgets as Tools.
|
|
|
|
QGraphicsWebView::Type != movingItem->type() && // for W3C widgets as Tools.
|
|
|
@ -1250,6 +1244,13 @@ void UBBoardView::mouseReleaseEvent (QMouseEvent *event) |
|
|
|
if (movingItem->isSelected()) |
|
|
|
if (movingItem->isSelected()) |
|
|
|
bReleaseIsNeed = true; |
|
|
|
bReleaseIsNeed = true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UBGraphicsTextItem* textItem = dynamic_cast<UBGraphicsTextItem*>(movingItem); |
|
|
|
|
|
|
|
UBGraphicsMediaItem* movieItem = dynamic_cast<UBGraphicsMediaItem*>(movingItem); |
|
|
|
|
|
|
|
if(textItem) |
|
|
|
|
|
|
|
textItem->setSelected(true); |
|
|
|
|
|
|
|
else if(movieItem) |
|
|
|
|
|
|
|
movieItem->setSelected(true); |
|
|
|
|
|
|
|
else |
|
|
|
movingItem->setSelected(true); |
|
|
|
movingItem->setSelected(true); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|