Commit ca5b2249 authored by Bryant Mairs's avatar Bryant Mairs

Updating OPMapControl's use of MouseEvents.

parent f2adb605
......@@ -28,6 +28,7 @@
#define MAPGRAPHICITEM_H
#include <QGraphicsItem>
#include <QGraphicsSceneMouseEvent>
#include "../internals/core.h"
//#include "../internals/point.h"
#include "../core/diagnostics.h"
......
......@@ -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());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment