GammaRay  2.4.0
Public Member Functions | List of all members
GammaRay::MetaPropertyImpl< Class, GetterReturnType, SetterArgType > Class Template Reference

Template-ed implementation of MetaProperty for member properties. More...

#include <metaproperty.h>

Inheritance diagram for GammaRay::MetaPropertyImpl< Class, GetterReturnType, SetterArgType >:
Inheritance graph
[legend]

Public Member Functions

 MetaPropertyImpl (const char *name, GetterReturnType(Class::*getter)() const, void(Class::*setter)(SetterArgType)=0)
 
bool isReadOnly () const Q_DECL_OVERRIDE
 Returns true if this property is read-only.
 
void setValue (void *object, const QVariant &value) Q_DECL_OVERRIDE
 Allows changing the property value, assuming it's not read-only, for the instance object.
 
const char * typeName () const Q_DECL_OVERRIDE
 Returns the name of the data type of this property.
 
QVariant value (void *object) const Q_DECL_OVERRIDE
 Current value of the property for object object.
 
- Public Member Functions inherited from GammaRay::MetaProperty
 MetaProperty (const char *name)
 
MetaObjectmetaObject () const
 Returns the class this property belongs to.
 
const char * name () const
 User-readable name of that property.
 

Detailed Description

template<typename Class, typename GetterReturnType, typename SetterArgType = GetterReturnType>
class GammaRay::MetaPropertyImpl< Class, GetterReturnType, SetterArgType >

Template-ed implementation of MetaProperty for member properties.


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

Klarälvdalens Datakonsult AB (KDAB)
"The Qt Experts"
http://www.kdab.com/
GammaRay
Qt-application inspection and manipulation tool
http://www.kdab.com/kdab-products/gammaray/