|
|
@ -291,10 +291,12 @@ void Waypoint2DIcon::paint(QPainter *painter, const QStyleOptionGraphicsItem *op |
|
|
|
redPen.setWidth(1); |
|
|
|
redPen.setWidth(1); |
|
|
|
painter->setPen(redPen); |
|
|
|
painter->setPen(redPen); |
|
|
|
const int acceptance = map->metersToPixels(waypoint->getAcceptanceRadius(), Coord()); |
|
|
|
const int acceptance = map->metersToPixels(waypoint->getAcceptanceRadius(), Coord()); |
|
|
|
painter->setPen(penBlack); |
|
|
|
if (acceptance > 0) { |
|
|
|
painter->drawEllipse(QPointF(0, 0), acceptance, acceptance); |
|
|
|
painter->setPen(penBlack); |
|
|
|
painter->setPen(redPen); |
|
|
|
painter->drawEllipse(QPointF(0, 0), acceptance, acceptance); |
|
|
|
painter->drawEllipse(QPointF(0, 0), acceptance, acceptance); |
|
|
|
painter->setPen(redPen); |
|
|
|
|
|
|
|
painter->drawEllipse(QPointF(0, 0), acceptance, acceptance); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if ((waypoint) && ((waypoint->getAction() == (int)MAV_CMD_NAV_LOITER_UNLIM) || (waypoint->getAction() == (int)MAV_CMD_NAV_LOITER_TIME) || (waypoint->getAction() == (int)MAV_CMD_NAV_LOITER_TURNS))) |
|
|
|
if ((waypoint) && ((waypoint->getAction() == (int)MAV_CMD_NAV_LOITER_UNLIM) || (waypoint->getAction() == (int)MAV_CMD_NAV_LOITER_TIME) || (waypoint->getAction() == (int)MAV_CMD_NAV_LOITER_TURNS))) |
|
|
|
{ |
|
|
|
{ |
|
|
|