This proxy model will display only the portion of a tree model with the common ancestor rootIndex.
More...
|
| RootIndexProxyModel (QObject *parent=Q_NULLPTR) |
|
| ~RootIndexProxyModel () |
|
bool | canFetchMore (const QModelIndex &parent) const override |
|
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
|
bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override |
|
void | fetchMore (const QModelIndex &parent) override |
|
bool | hasChildren (const QModelIndex &parent) const override |
|
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
|
bool | insertColumns (int column, int count, const QModelIndex &parent=QModelIndex()) override |
|
bool | insertRows (int row, int count, const QModelIndex &parent=QModelIndex()) override |
|
QModelIndex | mapFromSource (const QModelIndex &sourceIndex) const override |
|
QModelIndex | mapToSource (const QModelIndex &proxyIndex) const override |
|
bool | moveColumns (const QModelIndex &sourceParent, int sourceColumn, int count, const QModelIndex &destinationParent, int destinationChild) override |
|
bool | moveRows (const QModelIndex &sourceParent, int sourceRow, int count, const QModelIndex &destinationParent, int destinationChild) override |
|
bool | removeColumns (int column, int count, const QModelIndex &parent=QModelIndex()) override |
|
bool | removeRows (int row, int count, const QModelIndex &parent=QModelIndex()) override |
|
QModelIndex | rootIndex () const |
| Getter for rootIndex property. More...
|
|
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
|
void | setRootIndex (const QModelIndex &root) |
| Setter for rootIndex property. More...
|
|
void | setSourceModel (QAbstractItemModel *sourceModel) override |
|
This proxy model will display only the portion of a tree model with the common ancestor rootIndex.
The functionality is similar to QAbstractItemView::setRootIndex but on the model side