24 : _itemData(std::move(data)), _parentItem(parent)
104 if (column < 0 || column >=
_itemData.size())
126 if (position < 0 || position + count >
_childItems.size())
Definition of the TreeItem class.
Objects nodes for the TreeModel.
virtual int childCount() const
void appendChild(TreeItem *item)
virtual int columnCount() const
QList< TreeItem * > _childItems
TreeItem * parentItem() const
TreeItem * child(int row) const
bool removeChildren(int position, int count)
virtual bool setData(int column, const QVariant &value)
TreeItem(QList< QVariant > data, TreeItem *parent)
virtual QVariant data(int column) const
QList< QVariant > _itemData