mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -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 void canvasDoubleClickEvent( QMouseEvent * e );
|
||||||
|
|
||||||
virtual bool isTransient();
|
virtual bool isTransient();
|
||||||
|
|
||||||
|
bool gestureEvent( QGestureEvent *event );
|
||||||
};
|
};
|
||||||
%End
|
%End
|
||||||
|
@ -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 );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user