GammaRay API Documentation  3.2.0
Public Member Functions | List of all members
GammaRay::SingleColumnObjectProxyModel Class Reference

A QIdentityProxyModel for generic Objects. More...

#include <singlecolumnobjectproxymodel.h>

Inheritance diagram for GammaRay::SingleColumnObjectProxyModel:

Public Member Functions

 SingleColumnObjectProxyModel (QObject *parent=nullptr)
 
int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &proxyIndex, int role=Qt::DisplayRole) const override
 
QMap< int, QVariant > itemData (const QModelIndex &proxyIndex) const override
 

Detailed Description

A QIdentityProxyModel for generic Objects.

Constructor & Destructor Documentation

◆ SingleColumnObjectProxyModel()

GammaRay::SingleColumnObjectProxyModel::SingleColumnObjectProxyModel ( QObject *  parent = nullptr)
explicit

Constructor.

Parameters
parentis the parent object for this instance.

Member Function Documentation

◆ data()

QVariant GammaRay::SingleColumnObjectProxyModel::data ( const QModelIndex &  proxyIndex,
int  role = Qt::DisplayRole 
) const
override

Returns the data for the specified model.

Parameters
proxyIndexis a QModelIndex.
roleis a Qt role.
Returns
on success, a QVariant containing the data; QVariant() if some anamoly occurs.

© 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 by doxygen 1.9.1