From b7c4a7fbfc92ba359dfd39cf61ad56492b7b8004 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Thu, 20 Jul 2017 16:50:16 +0300 Subject: qrc: use "MapWidget.qml" as a QRC alias Apparently, if it's required to import a QML component inside any QML file from resource, the compoment QRC alias has to have the same name as the component - e.g. add QRC alias MapWidgetContextMenu.qml allows creating a MapWidgetContextMenu compoment inside MapWidget.qml. Signed-off-by: Lubomir I. Ivanov --- desktop-widgets/mapwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop-widgets') diff --git a/desktop-widgets/mapwidget.cpp b/desktop-widgets/mapwidget.cpp index ffd711835..c378b9fb3 100644 --- a/desktop-widgets/mapwidget.cpp +++ b/desktop-widgets/mapwidget.cpp @@ -18,7 +18,7 @@ MapWidget::MapWidget(QWidget *parent) : QQuickWidget(parent) qmlRegisterType("org.subsurfacedivelog.mobile", 1, 0, "MapLocationModel"); qmlRegisterType("org.subsurfacedivelog.mobile", 1, 0, "MapLocation"); - setSource(QUrl(QStringLiteral("qrc:/mapwidget-qml"))); + setSource(QUrl(QStringLiteral("qrc:/MapWidget.qml"))); setResizeMode(QQuickWidget::SizeRootObjectToView); m_rootItem = qobject_cast(rootObject()); -- cgit v1.2.3-70-g09d2