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