Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
ca5b2249
Commit
ca5b2249
authored
Jun 30, 2014
by
Bryant Mairs
Browse files
Updating OPMapControl's use of MouseEvents.
parent
f2adb605
Changes
2
Hide whitespace changes
Inline
Side-by-side
libs/opmapcontrol/src/mapwidget/mapgraphicitem.h
View file @
ca5b2249
...
...
@@ -28,6 +28,7 @@
#define MAPGRAPHICITEM_H
#include
<QGraphicsItem>
#include
<QGraphicsSceneMouseEvent>
#include
"../internals/core.h"
//#include "../internals/point.h"
#include
"../core/diagnostics.h"
...
...
libs/opmapcontrol/src/mapwidget/opmapwidget.cpp
View file @
ca5b2249
...
...
@@ -269,7 +269,7 @@ namespace mapcontrol
void
OPMapWidget
::
mouseMoveEvent
(
QMouseEvent
*
event
)
{
QGraphicsView
::
mouseMoveEvent
(
event
);
QPointF
p
=
event
->
p
os
F
();
QPointF
p
=
event
->
localP
os
();
p
=
map
->
mapFromParent
(
p
);
currentmouseposition
=
map
->
FromLocalToLatLng
(
p
.
x
(),
p
.
y
());
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment