GammaRay API Documentaion  2.5.0
Public Member Functions | List of all members
GammaRay::MetaStaticPropertyImpl< Class, GetterReturnType > Class Template Reference

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

#include <metaproperty.h>

Inheritance diagram for GammaRay::MetaStaticPropertyImpl< Class, GetterReturnType >:
Inheritance graph

Public Member Functions

 MetaStaticPropertyImpl (const char *name, GetterReturnType(*getter)())
bool isReadOnly () const override
 Returns true if this property is read-only.
const char * typeName () const override
 Returns the name of the data type of this property.
QVariant value (void *object) const 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.
virtual void setValue (void *object, const QVariant &value)
 Allows changing the property value, assuming it's not read-only, for the instance object.

Detailed Description

template<typename Class, typename GetterReturnType>
class GammaRay::MetaStaticPropertyImpl< Class, GetterReturnType >

Template-ed implementation of MetaProperty for static properties.

Klarälvdalens Datakonsult AB (KDAB)
"The Qt Experts"
Qt-application inspection and manipulation tool