Stellarium 0.15.2
|
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. More... | |
Protected Attributes | |
StelProperty * | prop |
The connected property, set by the constructor. More... | |
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.
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.
Definition at line 33 of file StelPropertyMgr.hpp.
|
protectedpure virtualslot |
This is connected by the constructor to the StelProperty::changed event of the connected property.
|
protected |
The connected property, set by the constructor.
Definition at line 46 of file StelPropertyMgr.hpp.