GammaRay API Documentation  2.10.0
Public Member Functions | List of all members
GammaRay::AbstractObjectDataProvider Class Referenceabstract

Base class for custom object data providers. More...

#include <objectdataprovider.h>

Public Member Functions

virtual SourceLocation creationLocation (QObject *obj) const =0
 Returns the source location where obj has been created. More...
 
virtual SourceLocation declarationLocation (QObject *obj) const =0
 Returns the source location where the type of obj has been declared. More...
 
virtual QString name (const QObject *obj) const =0
 Returns a name or identifier for obj. More...
 
virtual QString shortTypeName (QObject *obj) const =0
 Returns a shortened type name (e.g. More...
 
virtual QString typeName (QObject *obj) const =0
 Returns the full name of the type of obj. More...
 

Detailed Description

Base class for custom object data providers.

Inherit from this and register at ObjectDataProvider, to support basic QObject information retrieval from dynamic language bindings, such as QML.

Member Function Documentation

virtual SourceLocation GammaRay::AbstractObjectDataProvider::creationLocation ( QObject obj) const
pure virtual

Returns the source location where obj has been created.

virtual SourceLocation GammaRay::AbstractObjectDataProvider::declarationLocation ( QObject obj) const
pure virtual

Returns the source location where the type of obj has been declared.

virtual QString GammaRay::AbstractObjectDataProvider::name ( const QObject obj) const
pure virtual

Returns a name or identifier for obj.

virtual QString GammaRay::AbstractObjectDataProvider::shortTypeName ( QObject obj) const
pure virtual

Returns a shortened type name (e.g.

excluding namespaces) for obj.

virtual QString GammaRay::AbstractObjectDataProvider::typeName ( QObject obj) const
pure virtual

Returns the full name of the type of obj.


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