|
GammaRay API Documentation 3.3.1
|
A container for a generic Object Model derived from some Base. More...
#include <objectmodelbase.h>
Public Member Functions | |
| ObjectModelBase (QObject *parent) | |
| Constructor. | |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
| Returns the number of columns in the specified model (currently this is always 2). | |
| QVariant | dataForObject (QObject *object, const QModelIndex &index, int role) const |
| Returns the data for the specified object. | |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
| Returns the header data for the Object, given a section (column), orientation and role. | |
| QMap< int, QVariant > | itemData (const QModelIndex &index) const override |
A container for a generic Object Model derived from some Base.
|
inlineexplicit |
Constructor.
| parent | is the parent object for this instance. |
|
inlineoverride |
Returns the number of columns in the specified model (currently this is always 2).
| parent | is the model QModelIndex. |
|
inline |
Returns the data for the specified object.
| object | is a pointer to a QObject. |
| index | is the model QModelIndex. |
| role | is the Qt role. |
|
inlineoverride |
Returns the header data for the Object, given a section (column), orientation and role.
| section | an integer (either 0 or 1) corresponding to the section (column). |
| orientation | is the Qt::Orientation. |
| role | is the Qt role. |
GammaRay
Qt-application inspection and manipulation tool