26#include <initializer_list>
64 if (role != Qt::DisplayRole)
85 QModelIndex topLeft =
index(0, 0);
88 emit dataChanged(topLeft, bottomRight);
Item in the TreeItemView.
OpenScenarioModel()
Constructor that sets up the root of this model.
void update()
Updates this model.
OpenScenarioItem * getRootItem()
QVariant data(const QModelIndex &index, int role) const override
Returns the data of the item at the given index of the given role.
void clear() override
Deletes the current root and replaces it with a new one, as if this model was newly constructed.
virtual QVariant data(int column) const
int rowCount(const QModelIndex &parent=QModelIndex()) const override
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
int columnCount(const QModelIndex &parent=QModelIndex()) const override