equal
deleted
inserted
replaced
46 void setWindowSize(QSize windowSize); |
46 void setWindowSize(QSize windowSize); |
47 void cleanUp(); |
47 void cleanUp(); |
48 void activate(); |
48 void activate(); |
49 void setMinMaxZValue(int minZvalue, int maxZvalue); |
49 void setMinMaxZValue(int minZvalue, int maxZvalue); |
50 void connectDecodeRequestToPinchEvent(); |
50 void connectDecodeRequestToPinchEvent(); |
51 |
51 |
|
52 /* |
|
53 * This is an overloaded function when an index is changes due to deletion |
|
54 */ |
|
55 void indexChanged(); |
|
56 |
52 signals: |
57 signals: |
53 void pinchGestureReceived(int index); |
58 void pinchGestureReceived(int index); |
54 void zoomWidgetMovedBackground(int index); |
59 void zoomWidgetMovedBackground(int index); |
55 |
60 |
56 public slots: |
61 public slots: |
68 bool sceneEvent(QEvent *event); |
73 bool sceneEvent(QEvent *event); |
69 bool sceneEventFilter(QGraphicsItem *watched,QEvent *event); |
74 bool sceneEventFilter(QGraphicsItem *watched,QEvent *event); |
70 void timerEvent(QTimerEvent *event); |
75 void timerEvent(QTimerEvent *event); |
71 protected slots: |
76 protected slots: |
72 void dataChanged(QModelIndex startIndex, QModelIndex endIndex); |
77 void dataChanged(QModelIndex startIndex, QModelIndex endIndex); |
73 |
78 void modelDestroyed(); |
74 |
79 |
75 private: |
80 private: |
76 bool executeGestureEvent(QGraphicsItem *source,QGestureEvent *event); |
81 bool executeGestureEvent(QGraphicsItem *source,QGestureEvent *event); |
77 //Responsible for changing the transforms of the widget wrt the ZF and center |
82 //Responsible for changing the transforms of the widget wrt the ZF and center |
78 //Also adjusts the ZF, center and final size so as to respect the boundaries |
83 //Also adjusts the ZF, center and final size so as to respect the boundaries |