Model defining how a Scenario gets displayed in the TreeView.
More...
#include <ArmarXGui/gui-plugins/ScenarioManager/gui/scenariomodel.h>
|
| void | clear () override |
| | Clears and resets this model. More...
|
| |
| QVariant | data (const QModelIndex &index, int role) const override |
| | Returns the data of the item at the given index based on the given role. More...
|
| |
| bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override |
| |
| Qt::ItemFlags | flags (const QModelIndex &index) const override |
| | Returns the item flags of the item at the given index. More...
|
| |
| ScenarioItem * | getRootItem () |
| |
| QStringList | mimeTypes () const override |
| |
| | ScenarioModel () |
| | Sets up the model. More...
|
| |
| Qt::DropActions | supportedDropActions () const override |
| | Returns the drop-Actions supported by this model. More...
|
| |
| void | update () |
| | Updates this model. More...
|
| |
| 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 defining how a Scenario gets displayed in the TreeView.
Definition at line 39 of file scenariomodel.h.
◆ ScenarioModel()
◆ applicationsDrop
◆ clear()
◆ data()
| QVariant data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
|
override |
Returns the data of the item at the given index based on the given role.
- Parameters
-
| index | index of the item |
| role | role of the item |
Definition at line 49 of file scenariomodel.cpp.
◆ dropMimeData()
| bool dropMimeData |
( |
const QMimeData * |
data, |
|
|
Qt::DropAction |
action, |
|
|
int |
row, |
|
|
int |
column, |
|
|
const QModelIndex & |
parent |
|
) |
| |
|
override |
◆ FindScenario()
| ScenarioItem * FindScenario |
( |
const QAbstractItemModel * |
model, |
|
|
const QString & |
scenarioName |
|
) |
| |
|
static |
◆ FindScenarioIndex()
| int FindScenarioIndex |
( |
const QAbstractItemModel * |
model, |
|
|
const QString & |
scenarioName |
|
) |
| |
|
static |
◆ flags()
| Qt::ItemFlags flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
Returns the item flags of the item at the given index.
- Parameters
-
- Returns
- item flags
Definition at line 144 of file scenariomodel.cpp.
◆ getRootItem()
◆ mimeTypes()
| QStringList mimeTypes |
( |
| ) |
const |
|
override |
◆ supportedDropActions()
| Qt::DropActions supportedDropActions |
( |
| ) |
const |
|
override |
Returns the drop-Actions supported by this model.
- Returns
- supported drop-actions
Definition at line 138 of file scenariomodel.cpp.
◆ update()
The documentation for this class was generated from the following files: