|
Model underlying the ApplicationDatabaseView. More...
#include <ArmarXGui/gui-plugins/ScenarioManager/gui/applicationdatabasemodel.h>
Public Member Functions | |
ApplicationDatabaseModel () | |
Constructor that sets up the first item contained by this model. More... | |
void | clear () override |
Clears and resets this model as if it was newly constructed. More... | |
QVariant | data (const QModelIndex &index, int role) const override |
Returns the data at the specified index, depending on the specified role. More... | |
Qt::ItemFlags | flags (const QModelIndex &index) const override |
Returns the behavioural flags of the object at the specified index. More... | |
ApplicationDatabaseItem * | getRootItem () |
QMimeData * | mimeData (const QModelIndexList &indexes) const override |
Returns the mimedata of the objects at the specified indexes. More... | |
QStringList | mimeTypes () const override |
Returns supported MIME-types. More... | |
Qt::DropActions | supportedDragActions () const override |
Returns the supported drag action. More... | |
void | update () |
Updates the model. More... | |
Public Member Functions inherited from TreeModel | |
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 | |
Additional Inherited Members | |
Protected Member Functions inherited from TreeModel | |
TreeItem * | getItem (const QModelIndex &index) const |
Protected Attributes inherited from TreeModel | |
TreeItem * | rootItem |
Model underlying the ApplicationDatabaseView.
Definition at line 37 of file applicationdatabasemodel.h.
Constructor that sets up the first item contained by this model.
Definition at line 38 of file applicationdatabasemodel.cpp.
|
overridevirtual |
Clears and resets this model as if it was newly constructed.
Implements TreeModel.
Definition at line 66 of file applicationdatabasemodel.cpp.
|
override |
Returns the data at the specified index, depending on the specified role.
index | of the data |
role | role of the data |
Definition at line 43 of file applicationdatabasemodel.cpp.
|
override |
Returns the behavioural flags of the object at the specified index.
index | index of the object |
Definition at line 73 of file applicationdatabasemodel.cpp.
ApplicationDatabaseItem * getRootItem | ( | ) |
Definition at line 137 of file applicationdatabasemodel.cpp.
|
override |
Returns the mimedata of the objects at the specified indexes.
indexes | object indexes |
Definition at line 105 of file applicationdatabasemodel.cpp.
|
override |
Returns supported MIME-types.
Definition at line 98 of file applicationdatabasemodel.cpp.
|
override |
Returns the supported drag action.
In this case always Qt::CopyAction.
Definition at line 92 of file applicationdatabasemodel.cpp.
void update | ( | ) |
Updates the model.
Definition at line 129 of file applicationdatabasemodel.cpp.