diff --git a/CMakeLists.txt b/CMakeLists.txt index 70138616f..709600b08 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -269,7 +269,7 @@ endif() #set up the subsurface_link_libraries variable set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} ${LIBDIVECOMPUTER_LIBRARIES} ${LIBGIT2_LIBRARIES} ${LIBUSB_LIBRARIES}) -qt5_add_resources(SUBSURFACE_RESOURCES subsurface.qrc) +qt5_add_resources(SUBSURFACE_RESOURCES subsurface.qrc map-widget/qml/map-widget.qrc) # include translations add_subdirectory(translations) diff --git a/desktop-widgets/mapwidget.cpp b/desktop-widgets/mapwidget.cpp index 2060fdb7c..6d9cd867d 100644 --- a/desktop-widgets/mapwidget.cpp +++ b/desktop-widgets/mapwidget.cpp @@ -11,8 +11,8 @@ #include "mainwindow.h" #include "divelistview.h" -static const QUrl urlMapWidget = QUrl(QStringLiteral("qrc:/MapWidget.qml")); -static const QUrl urlMapWidgetError = QUrl(QStringLiteral("qrc:/MapWidgetError.qml")); +static const QUrl urlMapWidget = QUrl(QStringLiteral("qrc:/qml/MapWidget.qml")); +static const QUrl urlMapWidgetError = QUrl(QStringLiteral("qrc:/qml/MapWidgetError.qml")); static bool isReady = false; static bool skipReload = false; diff --git a/subsurface.qrc b/subsurface.qrc index c4d43b2fe..97436bcf4 100644 --- a/subsurface.qrc +++ b/subsurface.qrc @@ -1,16 +1,5 @@ - map-widget/qml/MapWidget.qml - map-widget/qml/MapWidgetError.qml - map-widget/qml/MapWidgetContextMenu.qml - map-widget/qml/icons/mapwidget-marker.png - map-widget/qml/icons/mapwidget-marker-gray.png - map-widget/qml/icons/mapwidget-marker-selected.png - map-widget/qml/icons/mapwidget-toggle-satellite.png - map-widget/qml/icons/mapwidget-toggle-street.png - map-widget/qml/icons/mapwidget-context-menu.png - map-widget/qml/icons/mapwidget-zoom-in.png - map-widget/qml/icons/mapwidget-zoom-out.png icons/satellite.svg icons/graph.png icons/go-top.svg