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.
 
void clear () override
 Clears and resets this model as if it was newly constructed.
 
QVariant data (const QModelIndex &index, int role) const override
 Returns the data at the specified index, depending on the specified role.
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 Returns the behavioural flags of the object at the specified index.
 
ApplicationDatabaseItem * getRootItem ()
 
QMimeData * mimeData (const QModelIndexList &indexes) const override
 Returns the mimedata of the objects at the specified indexes.
 
QStringList mimeTypes () const override
 Returns supported MIME-types.
 
Qt::DropActions supportedDragActions () const override
 Returns the supported drag action.
 
void update ()
 Updates the model.
 
- 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
 

Detailed Description

Model underlying the ApplicationDatabaseView.

Constructor & Destructor Documentation

◆ ApplicationDatabaseModel()

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

Member Function Documentation

◆ clear()

void clear ( )
overridevirtual

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

Implements TreeModel.

◆ 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

◆ 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

◆ getRootItem()

ApplicationDatabaseItem * getRootItem ( )

◆ 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

◆ mimeTypes()

QStringList mimeTypes ( ) const
override

Returns supported MIME-types.

Returns
list of the supported MIME-types

◆ supportedDragActions()

Qt::DropActions supportedDragActions ( ) const
override

Returns the supported drag action.

In this case always Qt::CopyAction.

◆ update()

void update ( )

Updates the model.


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