Skip to content
Permalink
Browse files

Merge pull request #681 from 3nids/maptoolcursor

set cursor for mapTools
  • Loading branch information
timlinux committed Jun 29, 2013
2 parents 8dc28f2 + f4a4009 commit 43748933eb3629580fc39167b6b0ac80112159a2
Showing with 11 additions and 0 deletions.
  1. +3 −0 python/gui/qgsmaptool.sip
  2. +5 −0 src/gui/qgsmaptool.cpp
  3. +3 −0 src/gui/qgsmaptool.h
@@ -83,6 +83,9 @@ class QgsMapTool : QObject
/** Return associated button with map tool or NULL if no button is associated */
QAbstractButton* button();

/** Set a user defined cursor */
virtual void setCursor(QCursor cursor);

/** Check whether this MapTool performs a zoom or pan operation.
* If it does, we will be able to perform the zoom and then
* resume operations with the original / previously used tool.*/
@@ -110,6 +110,11 @@ QAbstractButton* QgsMapTool::button()
return mButton;
}

void QgsMapTool::setCursor(QCursor cursor)
{
mCursor = cursor;
}


void QgsMapTool::canvasMoveEvent( QMouseEvent *e )
{
@@ -98,6 +98,9 @@ class GUI_EXPORT QgsMapTool : public QObject
/** Return associated button with map tool or NULL if no button is associated */
QAbstractButton* button();

/** Set a user defined cursor */
virtual void setCursor(QCursor cursor);

/** Check whether this MapTool performs a zoom or pan operation.
* If it does, we will be able to perform the zoom and then
* resume operations with the original / previously used tool.*/

0 comments on commit 4374893

Please sign in to comment.
You can’t perform that action at this time.