Go to the documentation of this file.
28 #include <QAbstractItemModel>
29 #include <QModelIndex>
42 Qt::ItemFlags
flags(
const QModelIndex&
index)
const override;
43 QModelIndex
parent(
const QModelIndex&
index)
const override;
45 QVariant
data(
const QModelIndex&
index,
int role)
const override;
47 int role = Qt::DisplayRole)
const override;
49 QModelIndex
index(
int row,
int column,
50 const QModelIndex&
parent = QModelIndex())
const override;
52 int rowCount(
const QModelIndex&
parent = QModelIndex())
const override;
56 const QModelIndex&
parent = QModelIndex());
58 const QModelIndex&
parent = QModelIndex());
60 const QModelIndex&
parent = QModelIndex());
62 const QModelIndex&
parent = QModelIndex());
66 virtual void clear() = 0;
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
ScalarT Orientation(const VectorXD< 2, ScalarT > &p1, const VectorXD< 2, ScalarT > &p2, const VectorXD< 2, ScalarT > &c)
bool insertRow(int position, TreeItem *item, const QModelIndex &parent=QModelIndex())
Qt::ItemFlags flags(const QModelIndex &index) const override
QModelIndex parent(const QModelIndex &index) const override
bool removeColumn(int position, const QModelIndex &parent=QModelIndex())
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
QVariant data(const QModelIndex &index, int role) const override
TreeItem * getItem(const QModelIndex &index) const
TreeModel(QObject *parent=0)
bool removeRow(int position, const QModelIndex &parent=QModelIndex())
bool insertColumn(int position, QVariant data, const QModelIndex &parent=QModelIndex())
std::shared_ptr< TreeModel > TreeModelPtr
int columnCount(const QModelIndex &parent=QModelIndex()) const override
int rowCount(const QModelIndex &parent=QModelIndex()) const override