Skip to content
Permalink
Browse files

make QgsMapToolTouch::gestureEvent() public

  • Loading branch information
jef-n committed Oct 19, 2013
1 parent 8d947e2 commit 6734ab443a41b5ab5a730651754d9365cf4eaf04
Showing with 4 additions and 1 deletion.
  1. +2 −0 python/gui/qgsmaptooltouch.sip
  2. +2 −1 src/gui/qgsmaptooltouch.h
@@ -24,5 +24,7 @@ class QgsMapToolTouch : QgsMapTool
virtual void canvasDoubleClickEvent( QMouseEvent * e );

virtual bool isTransient();

bool gestureEvent( QGestureEvent *event );
};
%End
@@ -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 );
};

0 comments on commit 6734ab4

Please sign in to comment.
You can’t perform that action at this time.