Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/a3a24b746530af5a3f5c0bbda7a33a9e70a54eac?style=unified&whitespace=ignore-eol You should set ROOT_URL correctly, otherwise the web may not work correctly.

Cursor upper widgets is the same as upper board.

Fixed restoring of cursors at mouse release event on board.
preferencesAboutTextFull
Aleksei Kanash 13 years ago
parent aa59455407
commit a3a24b7465
  1. 2
      src/board/UBBoardView.cpp
  2. 4
      src/domain/UBGraphicsProxyWidget.cpp
  3. 5
      src/domain/UBGraphicsScene.cpp

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

@ -47,6 +47,10 @@ UBGraphicsProxyWidget::~UBGraphicsProxyWidget()
QVariant UBGraphicsProxyWidget::itemChange(GraphicsItemChange change, const QVariant &value)
{
if (change == QGraphicsItem::ItemCursorHasChanged && scene())
{
unsetCursor();
}
if ((change == QGraphicsItem::ItemSelectedHasChanged)
&& scene())
{

@ -2372,9 +2372,4 @@ void UBGraphicsScene::setToolCursor(int tool)
{
deselectAllItems();
}
if (tool != (int)UBStylusTool::Eraser)
{
hideEraser();
}
}

Loading…
Cancel
Save