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;
39 tlp::Graph *graph =
nullptr, QObject *parent =
nullptr);
43 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex())
const override;
44 QModelIndex parent(
const QModelIndex &child)
const override;
45 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
46 int columnCount(
const QModelIndex &parent = QModelIndex())
const override;
47 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const override;
48 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const override;
49 Qt::ItemFlags flags(
const QModelIndex &index)
const override;
50 bool setData(
const QModelIndex &index,
const QVariant &value,
int role)
override;
54 #endif // PARAMETERLISTMODEL_H
A container that can store data from any type.
This class describes parameters taken by a plugin.