Go to the documentation of this file.
28 #include "../gui/treemodel.h"
49 QVariant
data(
const QModelIndex&
index,
int role)
const override;
54 void clear()
override;
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
Model used by the OpenScenarioView.
void update()
Updates this model.
OpenScenarioItem * getRootItem()
OpenScenarioModel()
Constructor that sets up the root of this model.
std::shared_ptr< OpenScenarioModel > OpenScenarioModelPtr
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.
Item in the TreeItemView. Every item represents a Scenario.