#include <SelectionProxyModel.h>
Inherits QItemSelectionModel.
|
| SelectionProxyModel (QItemSelectionModel *sourceSelectionModel, QAbstractProxyModel *proxyModel, QObject *parent=nullptr) |
|
void | setCurrentIndex (const QModelIndex &index, QItemSelectionModel::SelectionFlags command) override |
|
void | select (const QModelIndex &index, QItemSelectionModel::SelectionFlags command) override |
|
void | select (const QItemSelection &selection, QItemSelectionModel::SelectionFlags command) override |
|
void | clear () override |
|
void | reset () override |
|
void | clearCurrentIndex () override |
|
This class is a QItemSelectionModel that syncs through proxy models and maintains selection. In Qt we can have a model being filtered/sorted by proxy models. If the selection model is connected to the original model, the view needs a new selection model that understands the filtering. This class does that conversion. @Note: this class does not support changing proxy models (anywhere in the chain). The class will have to be recreated with the new proxy model.
The documentation for this class was generated from the following file:
- Code/Framework/AzQtComponents/AzQtComponents/Utilities/SelectionProxyModel.h