From ad021f6a79688279d1a666e119357ec60b79621f Mon Sep 17 00:00:00 2001 From: Donald Gagne Date: Mon, 20 Mar 2017 16:20:58 -0700 Subject: [PATCH] Allow vehicleComponents to signal change --- src/AutoPilotPlugins/AutoPilotPlugin.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/AutoPilotPlugins/AutoPilotPlugin.h b/src/AutoPilotPlugins/AutoPilotPlugin.h index aab99de0d..e612030d6 100644 --- a/src/AutoPilotPlugins/AutoPilotPlugin.h +++ b/src/AutoPilotPlugins/AutoPilotPlugin.h @@ -38,8 +38,8 @@ public: AutoPilotPlugin(Vehicle* vehicle, QObject* parent); ~AutoPilotPlugin(); - Q_PROPERTY(QVariantList vehicleComponents READ vehicleComponents CONSTANT) ///< List of VehicleComponent objects - Q_PROPERTY(bool setupComplete READ setupComplete NOTIFY setupCompleteChanged) ///< false: One or more vehicle components require setup + Q_PROPERTY(QVariantList vehicleComponents READ vehicleComponents NOTIFY vehicleComponentsChanged) ///< List of VehicleComponent objects + Q_PROPERTY(bool setupComplete READ setupComplete NOTIFY setupCompleteChanged) ///< false: One or more vehicle components require setup /// Called when parameters are ready for the first time. Note that parameters may still be missing. /// Overrides must call base class. @@ -56,6 +56,7 @@ public: signals: void setupCompleteChanged(bool setupComplete); + void vehicleComponentsChanged(void); protected: /// All access to AutoPilotPugin objects is through getInstanceForAutoPilotPlugin -- 2.22.0