|
|
@ -626,6 +626,7 @@ UBBoardView::mouseReleaseEvent (QMouseEvent *event) |
|
|
|
{ |
|
|
|
{ |
|
|
|
UBStylusTool::Enum currentTool = (UBStylusTool::Enum)UBDrawingController::drawingController ()->stylusTool (); |
|
|
|
UBStylusTool::Enum currentTool = (UBStylusTool::Enum)UBDrawingController::drawingController ()->stylusTool (); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setToolCursor (currentTool); |
|
|
|
// first propagate device release to the scene
|
|
|
|
// first propagate device release to the scene
|
|
|
|
if (scene ()) |
|
|
|
if (scene ()) |
|
|
|
scene ()->inputDeviceRelease (); |
|
|
|
scene ()->inputDeviceRelease (); |
|
|
@ -1019,6 +1020,7 @@ UBBoardView::setToolCursor (int tool) |
|
|
|
break; |
|
|
|
break; |
|
|
|
case UBStylusTool::Eraser: |
|
|
|
case UBStylusTool::Eraser: |
|
|
|
controlViewport->setCursor (UBResources::resources ()->eraserCursor); |
|
|
|
controlViewport->setCursor (UBResources::resources ()->eraserCursor); |
|
|
|
|
|
|
|
scene()->hideEraser(); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case UBStylusTool::Marker: |
|
|
|
case UBStylusTool::Marker: |
|
|
|
controlViewport->setCursor (UBResources::resources ()->markerCursor); |
|
|
|
controlViewport->setCursor (UBResources::resources ()->markerCursor); |
|
|
|