Commit bcc8eb3c authored by Claudio Valerio's avatar Claudio Valerio

Merge branch 'claudio-dev' into OEFUniboard

parents 37b7e524 2cb6aa89
......@@ -1299,31 +1299,6 @@ void UBBoardView::mouseReleaseEvent (QMouseEvent *event)
QGraphicsView::mouseReleaseEvent (event);
}
}
else if (currentTool == UBStylusTool::Play)
{
if (bIsDesktop) {
event->ignore();
return;
}
if (mWidgetMoved)
{
movingItem = NULL;
mWidgetMoved = false;
}
else
{
if (suspendedMousePressEvent)
{
QGraphicsView::mousePressEvent(suspendedMousePressEvent); // suspendedMousePressEvent is deleted by old Qt event loop
movingItem = NULL;
delete suspendedMousePressEvent;
suspendedMousePressEvent = NULL;
}
}
QGraphicsView::mouseReleaseEvent (event);
}
else if (currentTool == UBStylusTool::Text)
{
UBGraphicsItem *graphicsItem = dynamic_cast<UBGraphicsItem*>(movingItem);
......@@ -1405,6 +1380,7 @@ void UBBoardView::mouseReleaseEvent (QMouseEvent *event)
}
if (mWidgetMoved) {
movingItem->setSelected(false);
movingItem = NULL;
mWidgetMoved = false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment