21 #ifndef PARAMETERLISTMODEL_H
22 #define PARAMETERLISTMODEL_H
24 #include <tulip/TulipModel.h>
25 #include <tulip/WithParameter.h>
26 #include <tulip/DataSet.h>
33 class TLP_QT_SCOPE ParameterListModel :
public TulipModel {
34 QVector<ParameterDescription> _params;
43 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex())
const;
44 QModelIndex parent(
const QModelIndex &child)
const;
45 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
46 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
47 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
48 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const;
49 Qt::ItemFlags flags(
const QModelIndex &index)
const;
50 bool setData(
const QModelIndex &index,
const QVariant &value,
int role);
55 #endif // PARAMETERLISTMODEL_H