Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added QPoint QgsMapCanvas::mouseLastXY()
git-svn-id: http://svn.osgeo.org/qgis/trunk@5183 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Apr 6, 2006
1 parent 3411e3e commit 5d68018
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gui/qgsmapcanvas.cpp
Expand Up @@ -1074,4 +1074,7 @@ void QgsMapCanvas::showError(QgsMapLayer * mapLayer)

}

// ENDS
QPoint QgsMapCanvas::mouseLastXY()
{
return mCanvasProperties->mouseLastXY;
}
3 changes: 3 additions & 0 deletions src/gui/qgsmapcanvas.h
Expand Up @@ -191,6 +191,9 @@ class QgsMapCanvas : public Q3CanvasView
void panActionEnd(QPoint releasePoint);
//! Called when mouse is moving and pan is activated
void panAction(QMouseEvent * event);

//! returns last position of mouse cursor
QPoint mouseLastXY();

public slots:

Expand Down

0 comments on commit 5d68018

Please sign in to comment.