The FilterPropertyProxy class filters out all PropertyItem's and similar from SessionModel to have only top level items.
More...
The FilterPropertyProxy class filters out all PropertyItem's and similar from SessionModel to have only top level items.
Definition at line 24 of file FilterPropertyProxy.h.
◆ FilterPropertyProxy()
FilterPropertyProxy::FilterPropertyProxy |
( |
int |
columns, |
|
|
QObject * |
parent = 0 |
|
) |
| |
|
inline |
◆ columnCount()
int FilterPropertyProxy::columnCount |
( |
const QModelIndex & |
parent | ) |
const |
◆ filterAcceptsRow()
bool FilterPropertyProxy::filterAcceptsRow |
( |
int |
sourceRow, |
|
|
const QModelIndex & |
sourceParent |
|
) |
| const |
|
protected |
Definition at line 33 of file FilterPropertyProxy.cpp.
35 QModelIndex index = sourceModel()->index(sourceRow, 1, sourceParent);
36 if (!sourceParent.isValid())
39 if (modelType ==
"Property" || modelType ==
"GroupProperty" || modelType ==
"Vector")
References SessionFlags::ModelTypeRole.
◆ toSourceIndex()
QModelIndex FilterPropertyProxy::toSourceIndex |
( |
QModelIndex |
index | ) |
|
|
static |
◆ m_columns
int FilterPropertyProxy::m_columns |
|
private |
The documentation for this class was generated from the following files: