Skip to content

Commit

Permalink
make QgsMapToolTouch::gestureEvent() public
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Oct 19, 2013
1 parent 8d947e2 commit 6734ab4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions python/gui/qgsmaptooltouch.sip
Expand Up @@ -24,5 +24,7 @@ class QgsMapToolTouch : QgsMapTool
virtual void canvasDoubleClickEvent( QMouseEvent * e );

virtual bool isTransient();

bool gestureEvent( QGestureEvent *event );
};
%End
3 changes: 2 additions & 1 deletion src/gui/qgsmaptooltouch.h
Expand Up @@ -49,13 +49,14 @@ class GUI_EXPORT QgsMapToolTouch : public QgsMapTool

virtual bool isTransient() { return true; }

bool gestureEvent( QGestureEvent *event );

private:

//! Flag to indicate a map canvas drag operation is taking place
bool mDragging;
//! Flag to indicate a pinch gesture is taking place
bool mPinching;
bool gestureEvent( QGestureEvent *event );
void pinchTriggered( QPinchGesture *gesture );
};

Expand Down

0 comments on commit 6734ab4

Please sign in to comment.