24 #include <QAbstractItemModel> 26 #include <tulip/tulipconf.h> 30 class TLP_QT_SCOPE TulipModel :
public QAbstractItemModel {
36 GraphRole = Qt::UserRole + 1,
37 PropertyRole = Qt::UserRole + 2,
38 IsNodeRole = Qt::UserRole + 3,
39 StringRole = Qt::UserRole + 4,
40 MandatoryRole = Qt::UserRole + 5,
41 ElementIdRole = Qt::UserRole + 6
44 explicit TulipModel(QObject *parent =
nullptr);
45 ~TulipModel()
override;
47 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const override;
50 void checkStateChanged(QModelIndex, Qt::CheckState);
54 #endif // TULIPMODEL_H