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:
Dirk Hohndel 2022-02-09 15:56:36 -08:00
parent ce254bee57
commit 47d900bee5
5 changed files with 23 additions and 0 deletions

View file

@ -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");
}