diff --git a/src/ui/uas/UASQuickView.cc b/src/ui/uas/UASQuickView.cc index 8ff1b9480438a2df3db8c9c59bb17edf5c9c82ff..b433bdd37f5020833cfb52364ca42defae18066e 100644 --- a/src/ui/uas/UASQuickView.cc +++ b/src/ui/uas/UASQuickView.cc @@ -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);