mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-01 18:29:16 +01:00
OP-795 check and/or revert changes for mapwidget/waypointitem.cpp
This commit is contained in:
parent
635b1e98e4
commit
a8b57b3e0f
@ -229,7 +229,6 @@ WayPointItem::WayPointItem(MapGraphicItem *map, bool magicwaypoint):reached(fals
|
|||||||
}
|
}
|
||||||
void WayPointItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
|
void WayPointItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
|
||||||
{
|
{
|
||||||
QGraphicsItem::mouseReleaseEvent(event);
|
|
||||||
if(event->button()==Qt::LeftButton)
|
if(event->button()==Qt::LeftButton)
|
||||||
{
|
{
|
||||||
if(text)
|
if(text)
|
||||||
@ -242,15 +241,14 @@ WayPointItem::WayPointItem(MapGraphicItem *map, bool magicwaypoint):reached(fals
|
|||||||
delete textBG;
|
delete textBG;
|
||||||
textBG=NULL;
|
textBG=NULL;
|
||||||
}
|
}
|
||||||
coord=map->FromLocalToLatLng(this->pos().x(),this->pos().y());
|
|
||||||
|
|
||||||
isDragging=false;
|
isDragging=false;
|
||||||
RefreshToolTip();
|
RefreshToolTip();
|
||||||
emit manualCoordChange(this);
|
emit manualCoordChange(this);
|
||||||
emit localPositionChanged(this->pos(),this);
|
emit localPositionChanged(this->pos(),this);
|
||||||
emit WPValuesChanged(this);
|
emit WPValuesChanged(this);
|
||||||
emit WPDropped(this);
|
|
||||||
}
|
}
|
||||||
|
QGraphicsItem::mouseReleaseEvent(event);
|
||||||
}
|
}
|
||||||
void WayPointItem::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
|
void WayPointItem::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
|
||||||
{
|
{
|
||||||
|
@ -234,13 +234,6 @@ signals:
|
|||||||
* @param waypoint a pointer to this WayPoint
|
* @param waypoint a pointer to this WayPoint
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Fired when the waypoint is dropped somewhere
|
|
||||||
*
|
|
||||||
* @param waypoint a pointer to this WayPoint
|
|
||||||
*/
|
|
||||||
void WPDropped(WayPointItem* waypoint);
|
|
||||||
|
|
||||||
void WPValuesChanged(WayPointItem* waypoint);
|
void WPValuesChanged(WayPointItem* waypoint);
|
||||||
void waypointdoubleclick(WayPointItem* waypoint);
|
void waypointdoubleclick(WayPointItem* waypoint);
|
||||||
void localPositionChanged(QPointF point,WayPointItem* waypoint);
|
void localPositionChanged(QPointF point,WayPointItem* waypoint);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user