We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3411e3e commit 5d68018Copy full SHA for 5d68018
src/gui/qgsmapcanvas.cpp
@@ -1074,4 +1074,7 @@ void QgsMapCanvas::showError(QgsMapLayer * mapLayer)
1074
1075
}
1076
1077
-// ENDS
+QPoint QgsMapCanvas::mouseLastXY()
1078
+{
1079
+ return mCanvasProperties->mouseLastXY;
1080
+}
src/gui/qgsmapcanvas.h
@@ -191,6 +191,9 @@ class QgsMapCanvas : public Q3CanvasView
191
void panActionEnd(QPoint releasePoint);
192
//! Called when mouse is moving and pan is activated
193
void panAction(QMouseEvent * event);
194
+
195
+ //! returns last position of mouse cursor
196
+ QPoint mouseLastXY();
197
198
public slots:
199
0 commit comments