Stellarium
0.21.3
|
Abstract base class for a StelProperty proxy implementation, which allow reacting to the StelProperty::changed event using a specific type instead of reacting to the QVariant version. More...
#include <StelPropertyMgr.hpp>
Public Member Functions | |
StelPropertyProxy (StelProperty *prop, QObject *parent) | |
Protected Slots | |
virtual void | onPropertyChanged (const QVariant &value)=0 |
This is connected by the constructor to the StelProperty::changed event of the connected property. | |
Protected Attributes | |
StelProperty * | prop |
The connected property, set by the constructor. | |
This is required for some connections such as in the UI. The intented use is to subclass this class and implement the onPropertyChanged() slot, re-emitting the "changed" event with a type-converted value.