android/desktop: remove mapWidget from subsurface.qrc

remove mapWidget entries from subsurface.qrc, and
add reference to map-widget.qrc in CMakelist.txt

Android uses the same CMakelist.txt

Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
jan Iversen 2018-06-20 16:06:49 +02:00 committed by Dirk Hohndel
parent ff88e7ee99
commit 5df93e084d
3 changed files with 3 additions and 14 deletions

View file

@ -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)

View file

@ -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;

View file

@ -1,16 +1,5 @@
<RCC>
<qresource prefix="/">
<file alias="MapWidget.qml">map-widget/qml/MapWidget.qml</file>
<file alias="MapWidgetError.qml">map-widget/qml/MapWidgetError.qml</file>
<file alias="MapWidgetContextMenu.qml">map-widget/qml/MapWidgetContextMenu.qml</file>
<file alias="dive-location-marker-icon">map-widget/qml/icons/mapwidget-marker.png</file>
<file alias="dive-location-marker-inactive-icon">map-widget/qml/icons/mapwidget-marker-gray.png</file>
<file alias="dive-location-marker-selected-icon">map-widget/qml/icons/mapwidget-marker-selected.png</file>
<file alias="map-style-photo-icon">map-widget/qml/icons/mapwidget-toggle-satellite.png</file>
<file alias="map-style-map-icon">map-widget/qml/icons/mapwidget-toggle-street.png</file>
<file alias="open-menu-icon">map-widget/qml/icons/mapwidget-context-menu.png</file>
<file alias="zoom-in-icon">map-widget/qml/icons/mapwidget-zoom-in.png</file>
<file alias="zoom-out-icon">map-widget/qml/icons/mapwidget-zoom-out.png</file>
<file alias="satellite-icon">icons/satellite.svg</file>
<file alias="graph-icon">icons/graph.png</file>
<file alias="hide-icon">icons/go-top.svg</file>