航线脚本完成

This commit is contained in:
hm
2022-04-07 17:40:36 +08:00
parent 2c9e03c111
commit d555cf4f6c
36 changed files with 451 additions and 478 deletions
+11 -2
View File
@@ -588,6 +588,7 @@ void OPMapWidget::mouseMoveEvent(QMouseEvent *event)
}
//一个区域内禁止生成
/*
if(waypointsetting)
{
if((event->pos().x() > waypointsetting->x())&&(event->pos().x() < (waypointsetting->boundingRect().width() + waypointsetting->x())) &&
@@ -596,6 +597,7 @@ void OPMapWidget::mouseMoveEvent(QMouseEvent *event)
return;
}
}
*/
QPointF p = event->pos();
@@ -651,6 +653,7 @@ void OPMapWidget::mousePressEvent(QMouseEvent *event)
}
//一个区域内禁止生成
/*
if(waypointsetting)
{
if((event->pos().x() > waypointsetting->x())&&(event->pos().x() < (waypointsetting->boundingRect().width() + waypointsetting->x())) &&
@@ -659,6 +662,7 @@ void OPMapWidget::mousePressEvent(QMouseEvent *event)
return;
}
}
*/
if(event->button() == Qt::LeftButton)
{
@@ -753,6 +757,7 @@ void OPMapWidget::mouseDoubleClickEvent(QMouseEvent *event)
}
//一个区域内禁止生成
/*
if(waypointsetting)
{
if((event->pos().x() > waypointsetting->x())&&(event->pos().x() < (waypointsetting->boundingRect().width() + waypointsetting->x())) &&
@@ -761,6 +766,7 @@ void OPMapWidget::mouseDoubleClickEvent(QMouseEvent *event)
return;
}
}
*/
@@ -1401,7 +1407,10 @@ void OPMapWidget::WPotherPoint(int number)
}
}
if(1 != qAbs(number))
{
position = number;
}
WayPointItem *wp = WPFind(position);
@@ -1538,7 +1547,7 @@ void OPMapWidget::setWPCreate(bool const & value)
{
if(value)
{
waypointsetting->show();
//waypointsetting->show();
}
else
{