From 03f6b123d84c5cee915c55443df080a709bb037e Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Thu, 30 May 2013 13:28:14 +0200 Subject: [PATCH] play tool behaves corretly when moving strokes --- src/board/UBBoardView.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/board/UBBoardView.cpp b/src/board/UBBoardView.cpp index 2aaada0d..da3d8517 100644 --- a/src/board/UBBoardView.cpp +++ b/src/board/UBBoardView.cpp @@ -558,10 +558,6 @@ Here we determines cases when items should to get mouse press event at pressing if (currentTool != UBStylusTool::Selector) return false; break; - case UBGraphicsItemType::StrokeItemType: - if (currentTool == UBStylusTool::Play) - return true; - break; case UBGraphicsGroupContainerItem::Type: // Groups shouldn't reacts on any presses and moves for Play tool. if(currentTool == UBStylusTool::Play) @@ -1201,6 +1197,7 @@ void UBBoardView::mouseReleaseEvent (QMouseEvent *event) movingItem = NULL; bReleaseIsNeed = false; } + if (mWidgetMoved) { mWidgetMoved = false;