mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 03:33:25 +00:00
desktop-widgets/mapwidget: register the MapWidgetHelper QML type
This commit registers the class MapWidgetHelper for QML in the desktop version. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
63d7b315c1
commit
e2a4f3fcee
1 changed files with 3 additions and 0 deletions
|
@ -6,11 +6,14 @@
|
|||
#include "mapwidget.h"
|
||||
#include "core/dive.h"
|
||||
#include "core/divesite.h"
|
||||
#include "mobile-widgets/qmlmapwidgethelper.h"
|
||||
|
||||
MapWidget *MapWidget::m_instance = NULL;
|
||||
|
||||
MapWidget::MapWidget(QWidget *parent) : QQuickWidget(parent)
|
||||
{
|
||||
qmlRegisterType<MapWidgetHelper>("org.subsurfacedivelog.mobile", 1, 0, "MapWidgetHelper");
|
||||
|
||||
setSource(QUrl(QStringLiteral("qrc:/mapwidget-qml")));
|
||||
setResizeMode(QQuickWidget::SizeRootObjectToView);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue