mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	set cursor for mapTools
This commit is contained in:
		
							parent
							
								
									e491acb2aa
								
							
						
					
					
						commit
						f4a4009bca
					
				@ -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.*/
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user