mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	mainwindow: create an instance of MapWidget for NO_MARBLE
This is an attempt for a smooth transition between Marble and Qt Location map integration. If NO_MARBLE is defined an instance of MapWidget (Qt Location) is created, else an instance of the Marble widget would be used. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
		
							parent
							
								
									0f0a953727
								
							
						
					
					
						commit
						b0b5f701fc
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -63,6 +63,8 @@
 | 
			
		|||
#include "plugins/facebook/facebookconnectwidget.h"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "desktop-widgets/mapwidget.h"
 | 
			
		||||
 | 
			
		||||
QProgressDialog *progressDialog = NULL;
 | 
			
		||||
bool progressDialogCanceled = false;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -106,7 +108,7 @@ MainWindow::MainWindow() : QMainWindow(),
 | 
			
		|||
#ifndef NO_MARBLE
 | 
			
		||||
	GlobeGPS *mapWidget = GlobeGPS::instance();
 | 
			
		||||
#else
 | 
			
		||||
	QWidget *mapWidget = NULL;
 | 
			
		||||
	MapWidget *mapWidget = MapWidget::instance();
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
	PlannerSettingsWidget *plannerSettings = new PlannerSettingsWidget();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue