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:
parent
a0b3b47c48
commit
69d2e8828f
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user