Skip to content
Permalink
Browse files
set cursor for mapTools
  • Loading branch information
3nids committed Jun 28, 2013
1 parent e491acb commit f4a4009
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
@@ -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.