mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	qmlmapwidgethelper: add the centerOnDiveSite() method
MapWidget sould not handle any of the map backend. Instead it should just pass calls to MapWidgetHelper. Do that for centerOnDiveSite(). Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
		
							parent
							
								
									c68536ec56
								
							
						
					
					
						commit
						5cc2c02dfb
					
				
					 3 changed files with 17 additions and 7 deletions
				
			
		|  | @ -3,6 +3,8 @@ | |||
| 
 | ||||
| #include <QObject> | ||||
| 
 | ||||
| struct dive_site; | ||||
| 
 | ||||
| class MapWidgetHelper : public QObject { | ||||
| 
 | ||||
| 	Q_OBJECT | ||||
|  | @ -11,6 +13,8 @@ class MapWidgetHelper : public QObject { | |||
| public: | ||||
| 	explicit MapWidgetHelper(QObject *parent = NULL); | ||||
| 
 | ||||
| 	void centerOnDiveSite(struct dive_site *); | ||||
| 
 | ||||
| private: | ||||
| 	QObject *m_map; | ||||
| }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue