Skip to content

Commit 89a4b84

Browse files
committed
Allow shift-drag zooming with touch tool
(cherry-picked from 39da9d1)
1 parent f124b5d commit 89a4b84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/qgsmaptooltouch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class GUI_EXPORT QgsMapToolTouch : public QgsMapTool
4848
//! Overridden Mouse double click event.
4949
virtual void canvasDoubleClickEvent( QgsMapMouseEvent* e ) override;
5050

51-
Q_DECL_DEPRECATED virtual bool isTransient() const override { return true; }
51+
virtual Flags flags() const override { return QgsMapTool::Transient | QgsMapTool::AllowZoomRect; }
5252

5353
bool gestureEvent( QGestureEvent *event ) override;
5454

0 commit comments

Comments
 (0)