Commit fc73187a authored by Bryant's avatar Bryant

Make the UASQuickView support resetting to a default state after all UASes are removed.

parent c18a5334
......@@ -151,7 +151,11 @@ void UASQuickView::setActiveUAS(UASInterface* uas)
{
if (this->uas)
{
uasPropertyList.clear();
uasPropertyValueMap.clear();
uasPropertyToLabelMap.clear();
updateTimer->stop();
this->actions().clear();
}
this->uas = uas;
......@@ -292,6 +296,9 @@ void UASQuickView::valueChanged(const int uasId, const QString& name, const QStr
{
quickViewSelectDialog->addItem(name);
}
// And periodically update the view.
updateTimer->start(1000);
}
uasPropertyValueMap[name] = value;
}
......@@ -342,6 +349,14 @@ void UASQuickView::actionTriggered(bool checked)
}
}
void UASQuickView::valueChanged(const int uasid, const QString& name, const QString& unit, const QVariant value,const quint64 msecs)
{
Q_UNUSED(uasid);
Q_UNUSED(unit);
Q_UNUSED(msecs);
uasPropertyValueMap[name] = value.toDouble();
}
void UASQuickView::valChanged(double val,QString type)
{
Q_UNUSED(val);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment