src/hbwidgets/itemviews/hblistview_p.cpp
changeset 30 80e4d18b72f5
parent 23 e6ad4ef83b23
equal deleted inserted replaced
28:b7da29130b0e 30:80e4d18b72f5
   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                     }