Open 3D Engine AzQtComponents API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AzQtComponents::SelectionProxyModel Class Reference

#include <SelectionProxyModel.h>

Inherits QItemSelectionModel.

Public Member Functions

 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
 

Detailed Description

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: