equal
deleted
inserted
replaced
79 protected slots: |
79 protected slots: |
80 void dataChanged(QModelIndex startIndex, QModelIndex endIndex); |
80 void dataChanged(QModelIndex startIndex, QModelIndex endIndex); |
81 void modelDestroyed(); |
81 void modelDestroyed(); |
82 |
82 |
83 private: |
83 private: |
|
84 void springEffectAtMin(); |
|
85 void springEffectAtMax(); |
84 bool executeGestureEvent(QGraphicsItem *source,QGestureEvent *event); |
86 bool executeGestureEvent(QGraphicsItem *source,QGestureEvent *event); |
85 //Responsible for changing the transforms of the widget wrt the ZF and center |
87 //Responsible for changing the transforms of the widget wrt the ZF and center |
86 //Also adjusts the ZF, center and final size so as to respect the boundaries |
88 //Also adjusts the ZF, center and final size so as to respect the boundaries |
87 void zoomImage(qreal zoomFactor, QPointF center); |
89 void zoomImage(qreal zoomFactor, QPointF center); |
88 //This API will adjust the gesture center to maintain boundaries |
90 //This API will adjust the gesture center to maintain boundaries |
153 qreal msfInc; |
155 qreal msfInc; |
154 //stores the item size before performing zoomout or zoomin |
156 //stores the item size before performing zoomout or zoomin |
155 QSizeF minitSize; |
157 QSizeF minitSize; |
156 //counter to track the double tap animation steps |
158 //counter to track the double tap animation steps |
157 int mdoubletapSteps; |
159 int mdoubletapSteps; |
|
160 bool mDoubleTap; |
158 }; |
161 }; |
159 #endif //GLXZOOMWIDGET_H |
162 #endif //GLXZOOMWIDGET_H |