mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	mobile: remove GpsListModel
This is only needed to show the list of GPS fixes obtained with the now removed location service. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									edf4fbd38a
								
							
						
					
					
						commit
						bea552bf0d
					
				
					 8 changed files with 0 additions and 126 deletions
				
			
		| 
						 | 
				
			
			@ -19,7 +19,6 @@
 | 
			
		|||
#include "mobile-widgets/statsmanager.h"
 | 
			
		||||
#include "stats/chartlistmodel.h"
 | 
			
		||||
#include "qt-models/divesummarymodel.h"
 | 
			
		||||
#include "qt-models/gpslistmodel.h"
 | 
			
		||||
#include "qt-models/messagehandlermodel.h"
 | 
			
		||||
#include "qt-models/mobilelistmodel.h"
 | 
			
		||||
#include "profile-widget/qmlprofile.h"
 | 
			
		||||
| 
						 | 
				
			
			@ -116,12 +115,6 @@ void run_mobile_ui(double initial_font_size)
 | 
			
		|||
	// this is frustrating, but we appear to need different import paths on different OSs
 | 
			
		||||
	engine.addImportPath(":");
 | 
			
		||||
	engine.addImportPath("qrc://imports");
 | 
			
		||||
	QSortFilterProxyModel *gpsSortModel = new QSortFilterProxyModel(nullptr);
 | 
			
		||||
	gpsSortModel->setSourceModel(GpsListModel::instance());
 | 
			
		||||
	gpsSortModel->setDynamicSortFilter(true);
 | 
			
		||||
	gpsSortModel->setSortRole(GpsListModel::GpsWhenRole);
 | 
			
		||||
	gpsSortModel->sort(0, Qt::DescendingOrder);
 | 
			
		||||
	ctxt->setContextProperty("gpsModel", gpsSortModel);
 | 
			
		||||
	ctxt->setContextProperty("vendorList", vendorList);
 | 
			
		||||
	ctxt->setContextProperty("swipeModel", MobileModels::instance()->swipeModel());
 | 
			
		||||
	ctxt->setContextProperty("diveModel", MobileModels::instance()->listModel());
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue