From 1c251fae8be973cac1fab8bd30034e3bff6811a1 Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Fri, 30 Aug 2013 15:39:20 +0200 Subject: [PATCH] fix rules --- src/board/UBBoardView.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/board/UBBoardView.cpp b/src/board/UBBoardView.cpp index de0a2dcd..d9903cc7 100644 --- a/src/board/UBBoardView.cpp +++ b/src/board/UBBoardView.cpp @@ -1067,20 +1067,20 @@ void UBBoardView::mousePressEvent (QMouseEvent *event) default: if(UBDrawingController::drawingController()->mActiveRuler==NULL) { viewport()->setCursor (QCursor (Qt::BlankCursor)); - - if (scene () && !mTabletStylusIsPressed) { - if (currentTool == UBStylusTool::Eraser) { - connect(&mLongPressTimer, SIGNAL(timeout()), this, SLOT(longPressEvent())); - mLongPressTimer.start(); - } - scene()->inputDevicePress(mapToScene(UBGeometryUtils::pointConstrainedInRect(event->pos(), rect()))); + } + if (scene () && !mTabletStylusIsPressed) { + if (currentTool == UBStylusTool::Eraser) { + connect(&mLongPressTimer, SIGNAL(timeout()), this, SLOT(longPressEvent())); + mLongPressTimer.start(); } - event->accept (); + scene()->inputDevicePress(mapToScene(UBGeometryUtils::pointConstrainedInRect(event->pos(), rect()))); } + event->accept (); } } } + void UBBoardView::mouseMoveEvent (QMouseEvent *event) { // static QTime lastCallTime;