equal
deleted
inserted
replaced
179 HbEffect::cancel(mDraggedItem, QString(), true); |
179 HbEffect::cancel(mDraggedItem, QString(), true); |
180 mMousePressTimer.restart(); |
180 mMousePressTimer.restart(); |
181 mMousePressPos = scenePos; |
181 mMousePressPos = scenePos; |
182 mOriginalTransform = mDraggedItem->transform(); |
182 mOriginalTransform = mDraggedItem->transform(); |
183 mDraggedItem->setZValue(mDraggedItem->zValue() + 1); |
183 mDraggedItem->setZValue(mDraggedItem->zValue() + 1); |
184 mDraggedItem->translate(0, event->mapToGraphicsScene(gesture->offset()).y() - |
184 mDraggedItem->translate(0, gesture->offset().y()); |
185 event->mapToGraphicsScene(gesture->lastOffset()).y()); |
|
186 |
185 |
187 QObject::connect(q, SIGNAL(scrollPositionChanged(QPointF)), q, SLOT(scrolling(QPointF))); |
186 QObject::connect(q, SIGNAL(scrollPositionChanged(QPointF)), q, SLOT(scrolling(QPointF))); |
188 } else { |
187 } else { |
189 mDraggedItem = 0; |
188 mDraggedItem = 0; |
190 } |
189 } |