mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
make QgsMapToolTouch::gestureEvent() public
This commit is contained in:
parent
8d947e2c86
commit
6734ab443a
@ -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 );
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user