Qt Model Utilities
2.0.3
A set of utilities for the model/view framework of Qt
|
This proxy model will display only the portion of a tree model with the common ancestor rootIndex. More...
Signals | |
void | rootIndexChanged () |
Public Member Functions | |
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 |
Protected Member Functions | |
RootIndexProxyModel (RootIndexProxyModelPrivate &dptr, QObject *parent) | |
Properties | |
QModelIndex | rootIndex |
This property holds the root index of the model. More... | |
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
|
explicit |
Constructs a new proxy model with the given parent.
RootIndexProxyModel::~RootIndexProxyModel | ( | ) |
Destructor
|
override |
Reimplemented from base class
|
override |
Reimplemented from base class
|
override |
Reimplemented from base class
|
override |
Reimplemented from base class
|
override |
Reimplemented from base class
|
override |
Reimplemented from base class
|
override |
Reimplemented from base class
|
override |
Reimplemented from base class
|
override |
Reimplemented from base class
|
override |
Reimplemented from base class
|
override |
Reimplemented from base class
|
override |
Reimplemented from base class
|
override |
Reimplemented from base class
|
override |
Reimplemented from base class
QModelIndex RootIndexProxyModel::rootIndex | ( | ) | const |
Getter for rootIndex property.
|
override |
Reimplemented from base class
void RootIndexProxyModel::setRootIndex | ( | const QModelIndex & | root | ) |
Setter for rootIndex property.
|
override |
Reimplemented from base class
|
readwrite |
This property holds the root index of the model.
The root index is an index of the source model used as root by all elements of the proxy model