|
|
|
@ -190,7 +190,10 @@ void UBBoardThumbnailsView::mousePressEvent(QMouseEvent *event) |
|
|
|
|
UBDraggableThumbnailView* item = dynamic_cast<UBDraggableThumbnailView*>(itemAt(event->pos())); |
|
|
|
|
|
|
|
|
|
if (item) |
|
|
|
|
{ |
|
|
|
|
UBApplication::boardController->persistCurrentScene(); |
|
|
|
|
UBApplication::boardController->setActiveDocumentScene(item->sceneIndex()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QGraphicsView::mousePressEvent(event); |
|
|
|
|
} |
|
|
|
@ -202,7 +205,9 @@ void UBBoardThumbnailsView::mouseMoveEvent(QMouseEvent *event) |
|
|
|
|
|
|
|
|
|
void UBBoardThumbnailsView::longPressTimeout() |
|
|
|
|
{ |
|
|
|
|
if (QApplication::mouseButtons() != Qt::NoButton) |
|
|
|
|
emit mousePressAndHoldEventRequired(mLastPressedMousePos); |
|
|
|
|
|
|
|
|
|
mLongPressTimer.stop(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|