Model used by the OpenScenarioView.
More...
#include <ArmarXGui/gui-plugins/ScenarioManager/gui/openscenariomodel.h>
|
| 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.
|
| |
| OpenScenarioItem * | getRootItem () |
| |
| | OpenScenarioModel () |
| | Constructor that sets up the root of this model.
|
| |
| void | update () |
| | Updates this model.
|
| |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
| |
| QVariant | data (const QModelIndex &index, int role) const override |
| |
| Qt::ItemFlags | flags (const QModelIndex &index) const override |
| |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
| |
| QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
| |
| bool | insertColumn (int position, QVariant data, const QModelIndex &parent=QModelIndex()) |
| |
| bool | insertRow (int position, TreeItem *item, const QModelIndex &parent=QModelIndex()) |
| |
| QModelIndex | parent (const QModelIndex &index) const override |
| |
| bool | removeColumn (int position, const QModelIndex &parent=QModelIndex()) |
| |
| bool | removeRow (int position, const QModelIndex &parent=QModelIndex()) |
| |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| |
| | TreeModel (QObject *parent=0) |
| |
| | ~TreeModel () override |
| |
Model used by the OpenScenarioView.
◆ OpenScenarioModel()
Constructor that sets up the root of this model.
◆ clear()
Deletes the current root and replaces it with a new one, as if this model was newly constructed.
Implements TreeModel.
◆ data()
| QVariant data |
( |
const QModelIndex & | index, |
|
|
int | role ) const |
|
override |
Returns the data of the item at the given index of the given role.
- Parameters
-
| index | index of the item |
| role | role of the item |
◆ getRootItem()
◆ update()
The documentation for this class was generated from the following files: