Commit 1b40a17b authored by Don Gagne's avatar Don Gagne

Fix setupCompleteChanged notification

parent 8d728004
......@@ -44,7 +44,7 @@ void PX4Component::_parameterUpdated(int compId, QString paramName, QVariant val
while (*prgTriggers != NULL) {
if (paramName == *prgTriggers) {
emit setupCompleteChanged();
emit setupCompleteChanged(setupComplete());
return;
}
prgTriggers++;
......
......@@ -50,6 +50,7 @@ class VehicleComponent : public QObject
Q_PROPERTY(QString icon READ icon CONSTANT)
Q_PROPERTY(QWidget* setupWidget READ setupWidget STORED false)
Q_PROPERTY(QUrl summaryQmlSource READ summaryQmlSource CONSTANT);
Q_PROPERTY(QString prerequisiteSetup READ prerequisiteSetup)
public:
VehicleComponent(UASInterface* uas, AutoPilotPlugin* autopilot, QObject* parent = NULL);
......@@ -64,11 +65,12 @@ public:
virtual QWidget* setupWidget(void) const = 0;
virtual QStringList paramFilterList(void) const = 0;
virtual QUrl summaryQmlSource(void) const = 0;
virtual QString prerequisiteSetup(void) const = 0;
virtual void addSummaryQmlComponent(QQmlContext* context, QQuickItem* parent);
signals:
void setupCompleteChanged(void);
void setupCompleteChanged(bool setupComplete);
protected:
UASInterface* _uas;
......
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