mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 01:10:04 +00:00 
			
		
		
		
	Display mouse cursor icon on maps when Ctrl is held
This commit is contained in:
		
							parent
							
								
									9cb29c6b9a
								
							
						
					
					
						commit
						f4bc2572d2
					
				
					 7 changed files with 68 additions and 5 deletions
				
			
		|  | @ -940,6 +940,20 @@ void MapWidget::SetMapStyle(const std::string& styleName) | |||
|    } | ||||
| } | ||||
| 
 | ||||
| void MapWidget::UpdateMouseCoordinate(const common::Coordinate& coordinate) | ||||
| { | ||||
|    if (p->context_->mouse_coordinate() != coordinate) | ||||
|    { | ||||
|       p->context_->set_mouse_coordinate(coordinate); | ||||
| 
 | ||||
|       if (QGuiApplication::keyboardModifiers() != | ||||
|           Qt::KeyboardModifier::NoModifier) | ||||
|       { | ||||
|          update(); | ||||
|       } | ||||
|    } | ||||
| } | ||||
| 
 | ||||
| qreal MapWidget::pixelRatio() | ||||
| { | ||||
|    return devicePixelRatioF(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat