Skip to content
Permalink
Browse files

set cursor for mapTools

  • Loading branch information
3nids committed Jun 28, 2013
1 parent e491acb commit f4a4009bcaccae3e5e78fb784a856a5fd984cd25
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 f4a4009

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