Commit 6b67279d authored by David Redondo's avatar David Redondo 🏎

Add an update method to SensorProperty

Represents a common function that can be used to update the values of subclasses
that handle setting their values themselves.
parent ec8a4387
......@@ -96,6 +96,11 @@ public:
*/
void setValue(const QVariant &value);
/**
* Updates the value of this property if possible. The default implementation does nothing.
*/
virtual void update() {}
Q_SIGNALS:
/**
* Emitted when the value changes
......
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