mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Standard is to have 1 empty line between functions correct missing static in qPrefGeocoding.h Signed-off-by: Jan Iversen <jani@apache.org>
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			657 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			657 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| // SPDX-License-Identifier: GPL-2.0
 | |
| #include "qPrefLocationService.h"
 | |
| #include "qPrefPrivate.h"
 | |
| 
 | |
| static const QString group = QStringLiteral("LocationService");
 | |
| 
 | |
| qPrefLocationService::qPrefLocationService(QObject *parent) : QObject(parent)
 | |
| {
 | |
| }
 | |
| 
 | |
| qPrefLocationService *qPrefLocationService::instance()
 | |
| {
 | |
| 	static qPrefLocationService *self = new qPrefLocationService;
 | |
| 	return self;
 | |
| }
 | |
| 
 | |
| void qPrefLocationService::loadSync(bool doSync)
 | |
| {
 | |
| 	disk_distance_threshold(doSync);
 | |
| 	disk_time_threshold(doSync);
 | |
| }
 | |
| 
 | |
| HANDLE_PREFERENCE_INT(LocationService, "distance_threshold", distance_threshold);
 | |
| 
 | |
| HANDLE_PREFERENCE_INT(LocationService, "time_threshold", time_threshold);
 |