diff --git a/libs/opmapcontrol/src/mapwidget/mapgraphicitem.h b/libs/opmapcontrol/src/mapwidget/mapgraphicitem.h index 96621d059ddd2a7d388edf0f4f81547b1500e41d..ff06e6096f47f8d30e0109a0c72fbc9b4018fa87 100644 --- a/libs/opmapcontrol/src/mapwidget/mapgraphicitem.h +++ b/libs/opmapcontrol/src/mapwidget/mapgraphicitem.h @@ -28,6 +28,7 @@ #define MAPGRAPHICITEM_H #include +#include #include "../internals/core.h" //#include "../internals/point.h" #include "../core/diagnostics.h" diff --git a/libs/opmapcontrol/src/mapwidget/opmapwidget.cpp b/libs/opmapcontrol/src/mapwidget/opmapwidget.cpp index 066bef4454c5b68eca16f88b386107ffc1d9b102..ee3cc5b24895a571540491a442f67116cd78b335 100644 --- a/libs/opmapcontrol/src/mapwidget/opmapwidget.cpp +++ b/libs/opmapcontrol/src/mapwidget/opmapwidget.cpp @@ -269,7 +269,7 @@ namespace mapcontrol void OPMapWidget::mouseMoveEvent(QMouseEvent *event) { QGraphicsView::mouseMoveEvent(event); - QPointF p=event->posF(); + QPointF p=event->localPos(); p=map->mapFromParent(p); currentmouseposition=map->FromLocalToLatLng(p.x(),p.y()); }