1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08:24:11 +01:00

Added two emit signals for when a waypoint is dragged around the map witht he mouse. Made the waypoint 'picture' object public (temp).

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1910 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
pip 2010-10-07 07:06:18 +00:00 committed by pip
parent a0b3b47c48
commit 69d2e8828f
2 changed files with 5 additions and 1 deletions

View File

@ -102,6 +102,8 @@ namespace mapcontrol
coord=map->FromLocalToLatLng(this->pos().x(),this->pos().y());
isDragging=false;
RefreshToolTip();
emit WPValuesChanged(this);
}
QGraphicsItem::mouseReleaseEvent(event);
}
@ -114,6 +116,8 @@ namespace mapcontrol
QString coord_str = " " + QString::number(coord.Lat(), 'f', 6) + " " + QString::number(coord.Lng(), 'f', 6);
text->setText(coord_str);
textBG->setRect(text->boundingRect());
emit WPValuesChanged(this);
}
QGraphicsItem::mouseMoveEvent(event);
}

View File

@ -140,6 +140,7 @@ public:
QWidget *widget);
void RefreshPos();
void RefreshToolTip();
QPixmap picture;
~WayPointItem();
static int snumber;
@ -150,7 +151,6 @@ protected:
private:
QPixmap picture;
internals::PointLatLng coord;//coordinates of this WayPoint
bool reached;
QString description;