航线脚本完成
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user