On 16 September 2017 at 23:21, Stefan Fuchs <sfu...@gmx.de> wrote:
> Large step forward, maybe already 100% success:
> Googlemaps plugin compiles w/o errors. Subsurface starts w/o errors. Map is
> there and works based on very basic test.
>
> What is now left are errors like this showing up continuously:
>
> QMetaObject::invokeMethod: No such method
> QDeclarativeGeoMap_QML_5::toCoordinate(QPointF,bool)
> Candidates are:
>     toCoordinate(QPointF)
> QMetaObject::invokeMethod: No such method
> QDeclarativeGeoMap_QML_5::fromCoordinate(QGeoCoordinate,bool)
> Candidates are:
>     fromCoordinate(QGeoCoordinate)


Stefan, could you please try applying this patch to subsurface, to see
if the warning is gone on runtime?
i realized that the boolean argument in question is technically redundant.

lubomir
--
diff --git a/mobile-widgets/qmlmapwidgethelper.cpp b/mobile-widgets/qmlmapwidgethelper.cpp
index d0229f0..7745bf7 100644
--- a/mobile-widgets/qmlmapwidgethelper.cpp
+++ b/mobile-widgets/qmlmapwidgethelper.cpp
@@ -188,11 +188,11 @@ void MapWidgetHelper::calculateSmallCircleRadius(QGeoCoordinate coord)
 {
 	QPointF point;
 	QMetaObject::invokeMethod(m_map, "fromCoordinate", Q_RETURN_ARG(QPointF, point),
-	                          Q_ARG(QGeoCoordinate, coord), Q_ARG(bool, false));
+	                          Q_ARG(QGeoCoordinate, coord));
 	QPointF point2(point.x() + SMALL_CIRCLE_RADIUS_PX, point.y());
 	QGeoCoordinate coord2;
 	QMetaObject::invokeMethod(m_map, "toCoordinate", Q_RETURN_ARG(QGeoCoordinate, coord2),
-	                          Q_ARG(QPointF, point2), Q_ARG(bool, false));
+	                          Q_ARG(QPointF, point2));
 	m_smallCircleRadius = coord2.distanceTo(coord);
 }
 
_______________________________________________
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to