|
|
@ -1067,7 +1067,7 @@ 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())); |
|
|
@ -1078,9 +1078,9 @@ void UBBoardView::mousePressEvent (QMouseEvent *event) |
|
|
|
event->accept (); |
|
|
|
event->accept (); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void UBBoardView::mouseMoveEvent (QMouseEvent *event) |
|
|
|
void UBBoardView::mouseMoveEvent (QMouseEvent *event) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// static QTime lastCallTime;
|
|
|
|
// static QTime lastCallTime;
|
|
|
|