A QIdentityProxyModel for generic Objects.
More...
#include <singlecolumnobjectproxymodel.h>
|
| | 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 |
| |
A QIdentityProxyModel for generic Objects.
◆ SingleColumnObjectProxyModel()
| GammaRay::SingleColumnObjectProxyModel::SingleColumnObjectProxyModel |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
Constructor.
- Parameters
-
| parent | is the parent object for this instance. |
◆ data()
| QVariant GammaRay::SingleColumnObjectProxyModel::data |
( |
const QModelIndex & |
proxyIndex, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
Returns the data for the specified model.
- Parameters
-
| proxyIndex | is a QModelIndex. |
| role | is a Qt role. |
- Returns
- on success, a QVariant containing the data; QVariant() if some anamoly occurs.