File tree 3 files changed +11
-0
lines changed
3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,9 @@ class QgsMapTool : QObject
83
83
/** Return associated button with map tool or NULL if no button is associated */
84
84
QAbstractButton* button();
85
85
86
+ /** Set a user defined cursor */
87
+ virtual void setCursor(QCursor cursor);
88
+
86
89
/** Check whether this MapTool performs a zoom or pan operation.
87
90
* If it does, we will be able to perform the zoom and then
88
91
* resume operations with the original / previously used tool.*/
Original file line number Diff line number Diff line change @@ -110,6 +110,11 @@ QAbstractButton* QgsMapTool::button()
110
110
return mButton ;
111
111
}
112
112
113
+ void QgsMapTool::setCursor (QCursor cursor)
114
+ {
115
+ mCursor = cursor;
116
+ }
117
+
113
118
114
119
void QgsMapTool::canvasMoveEvent ( QMouseEvent *e )
115
120
{
Original file line number Diff line number Diff line change @@ -98,6 +98,9 @@ class GUI_EXPORT QgsMapTool : public QObject
98
98
/* * Return associated button with map tool or NULL if no button is associated */
99
99
QAbstractButton* button ();
100
100
101
+ /* * Set a user defined cursor */
102
+ virtual void setCursor (QCursor cursor);
103
+
101
104
/* * Check whether this MapTool performs a zoom or pan operation.
102
105
* If it does, we will be able to perform the zoom and then
103
106
* resume operations with the original / previously used tool.*/
You can’t perform that action at this time.
0 commit comments