From c75628c018b522ce49a0ecc2e997df1356b867ac Mon Sep 17 00:00:00 2001 From: pip Date: Sat, 9 Oct 2010 10:09:49 +0000 Subject: [PATCH] Added public "GetFromLocalToLatLng" function to allow widget point to lat/lon coord conversion. git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1925 ebee16cc-31ac-478f-84a7-5cbb03baadba --- ground/src/libs/opmapcontrol/src/mapwidget/opmapwidget.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ground/src/libs/opmapcontrol/src/mapwidget/opmapwidget.h b/ground/src/libs/opmapcontrol/src/mapwidget/opmapwidget.h index 8df614a0a..302be2731 100644 --- a/ground/src/libs/opmapcontrol/src/mapwidget/opmapwidget.h +++ b/ground/src/libs/opmapcontrol/src/mapwidget/opmapwidget.h @@ -244,6 +244,8 @@ namespace mapcontrol void SetFollowMouse(bool const& value){followmouse=value;this->setMouseTracking(followmouse);} bool FollowMouse(){return followmouse;} + internals::PointLatLng GetFromLocalToLatLng(QPointF p) {return map->FromLocalToLatLng(p.x(),p.y());} + /** * @brief Creates a new WayPoint on the center of the map *