载入功能完成
This commit is contained in:
@@ -557,7 +557,7 @@ void OPMapWidget::SetUseOpenGL(const bool &value)
|
||||
{
|
||||
useOpenGL = value;
|
||||
if (useOpenGL) {
|
||||
setViewport(new QGLWidget(QGLFormat(QGL::SampleBuffers)));
|
||||
setViewport(new QGLWidget(QGLFormat(QGL::DoubleBuffer)));
|
||||
} else {
|
||||
setupViewport(new QWidget());
|
||||
}
|
||||
@@ -1828,20 +1828,6 @@ void OPMapWidget::WPLoad(QString path)//带文件目录参数
|
||||
|
||||
Item->SetNumber(seq);
|
||||
|
||||
if(command > MAV_CMD::MAV_CMD_NAV_LAST)
|
||||
{
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
//WPLineCreate(WPFind(Item->Number() - 1),Item,Qt::green,false,2);
|
||||
}
|
||||
|
||||
//Item->setParent(map);
|
||||
|
||||
//qDebug() << "autocontinue" << autocontinue;
|
||||
|
||||
|
||||
emit setWPProperty(param1,param2,param3,param4,
|
||||
x,y,z,
|
||||
seq,
|
||||
@@ -1857,6 +1843,15 @@ void OPMapWidget::WPLoad(QString path)//带文件目录参数
|
||||
|
||||
Item->emitWPProperty();
|
||||
|
||||
|
||||
|
||||
WayPointItem *w_last = WPFind(Item->MissionType(),Item->Number() - 1);
|
||||
|
||||
if(w_last)
|
||||
{
|
||||
WPLineCreate(w_last,Item,Qt::green,false,2);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user