Commit 1c251fae authored by Claudio Valerio's avatar Claudio Valerio

fix rules

parent 2bc3ecd4
...@@ -1067,20 +1067,20 @@ void UBBoardView::mousePressEvent (QMouseEvent *event) ...@@ -1067,20 +1067,20 @@ void UBBoardView::mousePressEvent (QMouseEvent *event)
default: default:
if(UBDrawingController::drawingController()->mActiveRuler==NULL) { if(UBDrawingController::drawingController()->mActiveRuler==NULL) {
viewport()->setCursor (QCursor (Qt::BlankCursor)); viewport()->setCursor (QCursor (Qt::BlankCursor));
}
if (scene () && !mTabletStylusIsPressed) { if (scene () && !mTabletStylusIsPressed) {
if (currentTool == UBStylusTool::Eraser) { if (currentTool == UBStylusTool::Eraser) {
connect(&mLongPressTimer, SIGNAL(timeout()), this, SLOT(longPressEvent())); connect(&mLongPressTimer, SIGNAL(timeout()), this, SLOT(longPressEvent()));
mLongPressTimer.start(); mLongPressTimer.start();
}
scene()->inputDevicePress(mapToScene(UBGeometryUtils::pointConstrainedInRect(event->pos(), rect())));
} }
event->accept (); scene()->inputDevicePress(mapToScene(UBGeometryUtils::pointConstrainedInRect(event->pos(), rect())));
} }
event->accept ();
} }
} }
} }
void UBBoardView::mouseMoveEvent (QMouseEvent *event) void UBBoardView::mouseMoveEvent (QMouseEvent *event)
{ {
// static QTime lastCallTime; // static QTime lastCallTime;
......
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