21 #ifndef PARAMETERLISTMODEL_H 22 #define PARAMETERLISTMODEL_H 26 #include <tulip/TulipModel.h> 27 #include <tulip/WithParameter.h> 28 #include <tulip/DataSet.h> 32 class TLP_QT_SCOPE ParameterListModel :
public TulipModel {
33 std::vector<ParameterDescription> _params;
42 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex())
const;
43 QModelIndex parent(
const QModelIndex &child)
const;
44 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
45 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
46 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
47 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const;
48 Qt::ItemFlags flags(
const QModelIndex &index)
const;
49 bool setData(
const QModelIndex &index,
const QVariant &value,
int role);
54 #endif // PARAMETERLISTMODEL_H
A container that can store data from any type.
This class describes parameters taken by a plugin.