From aa32cc7d913f6ff6aa8c61308037799b1d70740d Mon Sep 17 00:00:00 2001 From: Aleksei Kanash Date: Wed, 31 Oct 2012 10:48:12 +0300 Subject: [PATCH] Rubber band works upper background images. --- src/board/UBBoardView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/board/UBBoardView.cpp b/src/board/UBBoardView.cpp index da316096..87fb2e5f 100644 --- a/src/board/UBBoardView.cpp +++ b/src/board/UBBoardView.cpp @@ -919,6 +919,10 @@ void UBBoardView::mousePressEvent (QMouseEvent *event) event->ignore(); return; } + + if (scene()->backgroundObject() == movingItem) + movingItem = NULL; + connect(&mLongPressTimer, SIGNAL(timeout()), this, SLOT(longPressEvent())); if (!movingItem && !mController->cacheIsVisible()) mLongPressTimer.start();