ApplicationDatabaseModel Class Reference

Model underlying the ApplicationDatabaseView. More...

#include <ArmarXGui/gui-plugins/ScenarioManager/gui/applicationdatabasemodel.h>

+ Inheritance diagram for ApplicationDatabaseModel:

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...
 
ApplicationDatabaseItemgetRootItem ()
 
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
TreeItemgetItem (const QModelIndex &index) const
 
- Protected Attributes inherited from TreeModel
TreeItemrootItem
 

Detailed Description

Model underlying the ApplicationDatabaseView.

Definition at line 37 of file applicationdatabasemodel.h.

Constructor & Destructor Documentation

◆ ApplicationDatabaseModel()

Constructor that sets up the first item contained by this model.

Definition at line 38 of file applicationdatabasemodel.cpp.

Member Function Documentation

◆ clear()

void clear ( )
overridevirtual

Clears and resets this model as if it was newly constructed.

Implements TreeModel.

Definition at line 66 of file applicationdatabasemodel.cpp.

+ Here is the caller graph for this function:

◆ data()

QVariant data ( const QModelIndex &  index,
int  role 
) const
override

Returns the data at the specified index, depending on the specified role.

Parameters
indexof the data
rolerole of the data
Returns
contained data

Definition at line 43 of file applicationdatabasemodel.cpp.

+ Here is the call graph for this function:

◆ flags()

Qt::ItemFlags flags ( const QModelIndex &  index) const
override

Returns the behavioural flags of the object at the specified index.

Parameters
indexindex of the object
Returns
behavioural flags

Definition at line 73 of file applicationdatabasemodel.cpp.

+ Here is the call graph for this function:

◆ getRootItem()

ApplicationDatabaseItem * getRootItem ( )

Definition at line 137 of file applicationdatabasemodel.cpp.

+ Here is the caller graph for this function:

◆ mimeData()

QMimeData * mimeData ( const QModelIndexList &  indexes) const
override

Returns the mimedata of the objects at the specified indexes.

Parameters
indexesobject indexes
Returns
data about the mime type of the objects

Definition at line 105 of file applicationdatabasemodel.cpp.

◆ mimeTypes()

QStringList mimeTypes ( ) const
override

Returns supported MIME-types.

Returns
list of the supported MIME-types

Definition at line 98 of file applicationdatabasemodel.cpp.

◆ supportedDragActions()

Qt::DropActions supportedDragActions ( ) const
override

Returns the supported drag action.

In this case always Qt::CopyAction.

Definition at line 92 of file applicationdatabasemodel.cpp.

◆ update()

void update ( )

Updates the model.

Definition at line 129 of file applicationdatabasemodel.cpp.

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: