1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

OP-795 check and/or revert changes for mapwidget/waypointitem.cpp

This commit is contained in:
Alessio Morale 2013-01-12 17:01:52 +01:00
parent 635b1e98e4
commit a8b57b3e0f
2 changed files with 1 additions and 10 deletions

View File

@ -229,7 +229,6 @@ WayPointItem::WayPointItem(MapGraphicItem *map, bool magicwaypoint):reached(fals
}
void WayPointItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
{
QGraphicsItem::mouseReleaseEvent(event);
if(event->button()==Qt::LeftButton)
{
if(text)
@ -242,15 +241,14 @@ WayPointItem::WayPointItem(MapGraphicItem *map, bool magicwaypoint):reached(fals
delete textBG;
textBG=NULL;
}
coord=map->FromLocalToLatLng(this->pos().x(),this->pos().y());
isDragging=false;
RefreshToolTip();
emit manualCoordChange(this);
emit localPositionChanged(this->pos(),this);
emit WPValuesChanged(this);
emit WPDropped(this);
}
QGraphicsItem::mouseReleaseEvent(event);
}
void WayPointItem::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
{

View File

@ -234,13 +234,6 @@ signals:
* @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 waypointdoubleclick(WayPointItem* waypoint);
void localPositionChanged(QPointF point,WayPointItem* waypoint);