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