|
|
@ -421,8 +421,6 @@ UBBoardView::mousePressEvent (QMouseEvent *event) |
|
|
|
} |
|
|
|
} |
|
|
|
else if (currentTool == UBStylusTool::Selector) |
|
|
|
else if (currentTool == UBStylusTool::Selector) |
|
|
|
{ |
|
|
|
{ |
|
|
|
QSet<QGraphicsItem*> existingTools = scene()->tools(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
movingItem = scene()->itemAt(this->mapToScene(event->posF().toPoint())); |
|
|
|
movingItem = scene()->itemAt(this->mapToScene(event->posF().toPoint())); |
|
|
|
|
|
|
|
|
|
|
|
if (!movingItem
|
|
|
|
if (!movingItem
|
|
|
@ -432,7 +430,8 @@ UBBoardView::mousePressEvent (QMouseEvent *event) |
|
|
|
|| movingItem->type() == UBGraphicsCompass::Type |
|
|
|
|| movingItem->type() == UBGraphicsCompass::Type |
|
|
|
|| movingItem->type() == UBGraphicsPDFItem::Type |
|
|
|
|| movingItem->type() == UBGraphicsPDFItem::Type |
|
|
|
|| movingItem->type() == UBGraphicsPolygonItem::Type |
|
|
|
|| movingItem->type() == UBGraphicsPolygonItem::Type |
|
|
|
|| movingItem->type() == UBGraphicsCache::Type) |
|
|
|
|| movingItem->type() == UBGraphicsCache::Type |
|
|
|
|
|
|
|
|| scene()->isBackgroundObject(movingItem)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
movingItem = NULL; |
|
|
|
movingItem = NULL; |
|
|
|
QGraphicsView::mousePressEvent (event); |
|
|
|
QGraphicsView::mousePressEvent (event); |
|
|
|