GammaRay API Documentaion  2.6.0
Public Member Functions | List of all members
GammaRay::PropertyControllerExtension Class Reference

Base-class for server-side property editor extensions. More...

#include <propertycontrollerextension.h>

Public Member Functions

 PropertyControllerExtension (const QString &name)
 Create a new property extension. More...
 
QString name () const
 Returns the identifier of this extension, used for client/server communication.
 
virtual bool setMetaObject (const QMetaObject *metaObject)
 Sets the meta object that should be represented by this extension. This variant is used for QMetaObjects without a specific object instance. More...
 
virtual bool setObject (void *object, const QString &typeName)
 Sets the object that should be represented by this extension. This variant is used for non-QObject types using Gammaray::MetaObjectRepository. More...
 
virtual bool setQObject (QObject *object)
 Sets the QObject that should be represented by this extension. This variant is used for QObject-derived types. More...
 

Detailed Description

Base-class for server-side property editor extensions.

This can be used to add your own tabs to the property widget. Re-implement the corresponding variant of setObject/setMetaObject you can handle, the default implementations do nothing and return false.

Since
2.1

Constructor & Destructor Documentation

GammaRay::PropertyControllerExtension::PropertyControllerExtension ( const QString name)
explicit

Create a new property extension.

Parameters
nameThe extension identifier used for client/server communication.

Member Function Documentation

virtual bool GammaRay::PropertyControllerExtension::setMetaObject ( const QMetaObject metaObject)
virtual

Sets the meta object that should be represented by this extension. This variant is used for QMetaObjects without a specific object instance.

Returns
true if the extension can handle object, false otherwise.
virtual bool GammaRay::PropertyControllerExtension::setObject ( void *  object,
const QString typeName 
)
virtual

Sets the object that should be represented by this extension. This variant is used for non-QObject types using Gammaray::MetaObjectRepository.

Returns
true if the extension can handle object, false otherwise.
virtual bool GammaRay::PropertyControllerExtension::setQObject ( QObject object)
virtual

Sets the QObject that should be represented by this extension. This variant is used for QObject-derived types.

Returns
true if the extension can handle object, false otherwise.

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