Skip to content

Commit 6734ab4

Browse files
committed
make QgsMapToolTouch::gestureEvent() public
1 parent 8d947e2 commit 6734ab4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

python/gui/qgsmaptooltouch.sip

+2
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,7 @@ class QgsMapToolTouch : QgsMapTool
2424
virtual void canvasDoubleClickEvent( QMouseEvent * e );
2525

2626
virtual bool isTransient();
27+
28+
bool gestureEvent( QGestureEvent *event );
2729
};
2830
%End

src/gui/qgsmaptooltouch.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,14 @@ class GUI_EXPORT QgsMapToolTouch : public QgsMapTool
4949

5050
virtual bool isTransient() { return true; }
5151

52+
bool gestureEvent( QGestureEvent *event );
53+
5254
private:
5355

5456
//! Flag to indicate a map canvas drag operation is taking place
5557
bool mDragging;
5658
//! Flag to indicate a pinch gesture is taking place
5759
bool mPinching;
58-
bool gestureEvent( QGestureEvent *event );
5960
void pinchTriggered( QPinchGesture *gesture );
6061
};
6162

0 commit comments

Comments
 (0)