Commit d69f9f25 authored by David Redondo's avatar David Redondo 🏎 Committed by Arjen Hiemstra
Browse files

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 91ba181a
......@@ -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
......
Supports Markdown
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