This commit is contained in:
hm
2020-08-13 16:36:49 +08:00
parent 7491439a9b
commit 8b4142163a
5 changed files with 366 additions and 316 deletions
@@ -737,7 +737,7 @@ void MAVLinkInspector::updateField(mavlink_message_t* msg, const mavlink_message
{
if(scope)
{
scope->setSerieData(QString::number(msg->sysid) + "." + item->data(0,Qt::DisplayRole).toString(),item->data(1,Qt::DisplayRole));
scope->chartView->setSerieData(QString::number(msg->sysid) + "." + item->data(0,Qt::DisplayRole).toString(),item->data(1,Qt::DisplayRole));
}
}
}
@@ -787,7 +787,7 @@ void MAVLinkInspector::on_treeWidget_itemChanged(QTreeWidgetItem *item, int colu
{
QString str = item->parent()->parent()->text(0);
str = str.mid(str.indexOf(' ') + 1);
scope->removeSerie(str + "." + item->data(0,Qt::DisplayRole).toString());
scope->chartView->removeSerie(str + "." + item->data(0,Qt::DisplayRole).toString());
}
}
}