GammaRay API Documentation 3.0.1
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.
 
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.
 
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.
 
virtual bool setQObject (QObject *object)
 Sets the QObject that should be represented by this extension. This variant is used for QObject-derived types.
 

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

◆ PropertyControllerExtension()

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

Create a new property extension.

Parameters
nameThe extension identifier used for client/server communication.

Member Function Documentation

◆ setMetaObject()

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.

◆ setObject()

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.

◆ setQObject()

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.

© 2010-2023 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
GammaRay Qt-application inspection and manipulation tool
https://www.kdab.com/development-resources/qt-tools/gammaray/
Generated on Wed Jul 3 2024 00:08:13 for GammaRay API Documentation by doxygen 1.9.8