pqPipelineModelSelectionAdaptor.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 #ifndef pqPipelineModelSelectionAdaptor_h
5 #define pqPipelineModelSelectionAdaptor_h
6 
7 #include "pqSelectionAdaptor.h"
8 
14 {
15  Q_OBJECT
16 
17 public:
18  pqPipelineModelSelectionAdaptor(QItemSelectionModel* pipelineSelectionModel);
20 
21 protected:
22  QModelIndex mapFromItem(pqServerManagerModelItem*) const override;
23  pqServerManagerModelItem* mapToItem(const QModelIndex& index) const override;
24 
25 private:
26  Q_DISABLE_COPY(pqPipelineModelSelectionAdaptor)
27 };
28 #endif
#define PQCOMPONENTS_EXPORT
pqServerManagerModelItem is a element maintained by pqServerManagerModel.
pqPipelineModelSelectionAdaptor is an adaptor that connects a QItemSelectionModel for a pqPipelineMod...
virtual QModelIndex mapFromItem(pqServerManagerModelItem *item) const =0
Maps a pqServerManagerModelItem to an index in the QAbstractItemModel.
virtual pqServerManagerModelItem * mapToItem(const QModelIndex &index) const =0
Maps a QModelIndex to a pqServerManagerModelItem.
index
pqSelectionAdaptor is the abstract base class for an adaptor that connects a QItemSelectionModel to p...