equal
deleted
inserted
replaced
22 #include <QGraphicsSceneMouseEvent> |
22 #include <QGraphicsSceneMouseEvent> |
23 #include <QDebug> |
23 #include <QDebug> |
24 #include <QGesture> |
24 #include <QGesture> |
25 #include <hbpangesture.h> |
25 #include <hbpangesture.h> |
26 #include <hbiconanimator.h> |
26 #include <hbiconanimator.h> |
|
27 #include <hbinstance.h> |
27 |
28 |
28 //User Includes |
29 //User Includes |
29 #include <glxmodelparm.h> |
30 #include <glxmodelparm.h> |
30 #include <glxcoverflow.h> |
31 #include <glxcoverflow.h> |
31 #include "glxviewids.h" |
32 #include "glxviewids.h" |
117 mTimerId = startTimer(500); |
118 mTimerId = startTimer(500); |
118 } |
119 } |
119 else { |
120 else { |
120 killTimer(mTimerId); |
121 killTimer(mTimerId); |
121 mTimerId = 0; |
122 mTimerId = 0; |
122 emit doubleTapEventReceived(gesture->position()); |
123 emit doubleTapEventReceived(hbInstance->allMainWindows().first()->mapToScene(gesture->position().toPoint())); |
123 } |
124 } |
124 event->accept(gesture); |
125 event->accept(gesture); |
125 } |
126 } |
126 } |
127 } |
127 |
128 |
484 mIconItem[i] = NULL; |
485 mIconItem[i] = NULL; |
485 } |
486 } |
486 } |
487 } |
487 } |
488 } |
488 |
489 |
489 void GlxCoverFlow::partiallyCreate(QAbstractItemModel *model, QSize itemSize) |
490 void GlxCoverFlow::partiallyCreate( QAbstractItemModel *model, QSize itemSize, int posY ) |
490 { |
491 { |
491 qDebug("GlxCoverFlow::resetpartiallyCreated"); |
492 qDebug("GlxCoverFlow::resetpartiallyCreated poxY %d", posY ); |
492 mIconItem[2]->setSize ( itemSize ); |
493 mIconItem[2]->setSize ( itemSize ); |
493 mIconItem[2]->setPos ( QPointF ( 0, 0) ); |
494 mIconItem[2]->setPos ( QPointF ( 0, posY ) ); |
494 mModel = model ; |
495 mModel = model ; |
495 mSelIndex = getFocusIndex(); |
496 mSelIndex = getFocusIndex(); |
496 mIconItem[2]->setIcon( getIcon( mSelIndex ) ) ; |
497 mIconItem[2]->setIcon( getIcon( mSelIndex ) ) ; |
497 mModel = NULL; |
498 mModel = NULL; |
498 } |
499 } |
528 } |
529 } |
529 |
530 |
530 void GlxCoverFlow::zoomStarted(int index) |
531 void GlxCoverFlow::zoomStarted(int index) |
531 { |
532 { |
532 Q_UNUSED(index) |
533 Q_UNUSED(index) |
|
534 emit coverFlowEvent( ZOOM_START_EVENT ); |
533 stopAnimation(); |
535 stopAnimation(); |
534 mZoomOn = true; |
536 mZoomOn = true; |
535 } |
537 } |
536 |
538 |
537 void GlxCoverFlow::zoomFinished(int index) |
539 void GlxCoverFlow::zoomFinished(int index) |