Stellarium 0.15.2
List of all members | Public Member Functions | Protected Slots | Protected Attributes
StelPropertyProxy Class Referenceabstract

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>

+ Inheritance diagram for StelPropertyProxy:
+ Collaboration diagram for StelPropertyProxy:

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

StelPropertyprop
 The connected property, set by the constructor. More...
 

Detailed Description

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.

Member Function Documentation

virtual void StelPropertyProxy::onPropertyChanged ( const QVariant &  value)
protectedpure virtualslot

This is connected by the constructor to the StelProperty::changed event of the connected property.

Member Data Documentation

StelProperty* StelPropertyProxy::prop
protected

The connected property, set by the constructor.

Definition at line 46 of file StelPropertyMgr.hpp.


The documentation for this class was generated from the following file: