make QgsMapToolTouch::gestureEvent() public

This commit is contained in:
Juergen E. Fischer 2013-10-19 20:02:57 +02:00
parent 8d947e2c86
commit 6734ab443a
2 changed files with 4 additions and 1 deletions

View File

@ -24,5 +24,7 @@ class QgsMapToolTouch : QgsMapTool
virtual void canvasDoubleClickEvent( QMouseEvent * e ); virtual void canvasDoubleClickEvent( QMouseEvent * e );
virtual bool isTransient(); virtual bool isTransient();
bool gestureEvent( QGestureEvent *event );
}; };
%End %End

View File

@ -49,13 +49,14 @@ class GUI_EXPORT QgsMapToolTouch : public QgsMapTool
virtual bool isTransient() { return true; } virtual bool isTransient() { return true; }
bool gestureEvent( QGestureEvent *event );
private: private:
//! Flag to indicate a map canvas drag operation is taking place //! Flag to indicate a map canvas drag operation is taking place
bool mDragging; bool mDragging;
//! Flag to indicate a pinch gesture is taking place //! Flag to indicate a pinch gesture is taking place
bool mPinching; bool mPinching;
bool gestureEvent( QGestureEvent *event );
void pinchTriggered( QPinchGesture *gesture ); void pinchTriggered( QPinchGesture *gesture );
}; };