mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Qt6: don't build MapWidget
Since Qt6 doesn't include QtLocation anymore, we can't build MapWidget. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									ce254bee57
								
							
						
					
					
						commit
						47d900bee5
					
				
					 5 changed files with 23 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -2,8 +2,11 @@
 | 
			
		|||
#include <QQmlEngine>
 | 
			
		||||
#include <QQuickItem>
 | 
			
		||||
 | 
			
		||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
 | 
			
		||||
#include "map-widget/qmlmapwidgethelper.h"
 | 
			
		||||
#include "qt-models/maplocationmodel.h"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "stats/statsview.h"
 | 
			
		||||
#include "core/qt-gui.h"
 | 
			
		||||
#include "core/settings/qPref.h"
 | 
			
		||||
| 
						 | 
				
			
			@ -222,7 +225,9 @@ static void register_qml_types(QQmlEngine *engine)
 | 
			
		|||
	register_qml_type<ChartListModel>("ChartListModel");
 | 
			
		||||
#endif // not SUBSURFACE_MOBILE
 | 
			
		||||
 | 
			
		||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
 | 
			
		||||
	register_qml_type<MapWidgetHelper>("MapWidgetHelper");
 | 
			
		||||
	register_qml_type<MapLocationModel>("MapLocationModel");
 | 
			
		||||
#endif
 | 
			
		||||
	register_qml_type<StatsView>("StatsView");
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue