pqSelectionAdaptor is the abstract base class for an adaptor that connects a QItemSelectionModel to pqActiveObjects making it possible to update the pqActiveObjects source selection when the QItemSelectionModel changes and vice-versa.
More...
#include <pqSelectionAdaptor.h>
pqSelectionAdaptor is the abstract base class for an adaptor that connects a QItemSelectionModel to pqActiveObjects making it possible to update the pqActiveObjects source selection when the QItemSelectionModel changes and vice-versa.
Subclass typically only need to implement mapToItem() and mapFromItem().
Definition at line 22 of file pqSelectionAdaptor.h.
◆ ~pqSelectionAdaptor()
pqSelectionAdaptor::~pqSelectionAdaptor |
( |
| ) |
|
|
override |
◆ pqSelectionAdaptor()
pqSelectionAdaptor::pqSelectionAdaptor |
( |
QItemSelectionModel * |
pipelineSelectionModel | ) |
|
|
protected |
◆ getQSelectionModel()
QItemSelectionModel* pqSelectionAdaptor::getQSelectionModel |
( |
| ) |
const |
|
inline |
◆ mapFromItem()
◆ mapToItem()
◆ getQModel()
const QAbstractItemModel* pqSelectionAdaptor::getQModel |
( |
| ) |
const |
|
protected |
Returns the QAbstractItemModel used by the QSelectionModel.
If QSelectionModel uses a QAbstractProxyModel, this method skips over all such proxy models and returns the first non-proxy model encountered.
◆ selectionChanged
virtual void pqSelectionAdaptor::selectionChanged |
( |
| ) |
|
|
protectedvirtualslot |
called when the selection in the Qt-model changes.
◆ currentProxyChanged
virtual void pqSelectionAdaptor::currentProxyChanged |
( |
| ) |
|
|
protectedvirtualslot |
called when the ServerManager level selection (or current) changes.
◆ proxySelectionChanged
virtual void pqSelectionAdaptor::proxySelectionChanged |
( |
| ) |
|
|
protectedvirtualslot |
◆ qtSelectionFlags
virtual QItemSelectionModel::SelectionFlag pqSelectionAdaptor::qtSelectionFlags |
( |
| ) |
const |
|
inlineprotectedvirtualslot |
subclasses can override this method to provide model specific selection overrides such as QItemSelection::Rows or QItemSelection::Columns etc.
Definition at line 70 of file pqSelectionAdaptor.h.
The documentation for this class was generated from the following file: