umbrello 2.39.0
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
ObjectsModel Class Reference

#include <objectsmodel.h>

Inheritance diagram for ObjectsModel:
Collaboration diagram for ObjectsModel:

Public Member Functions

 ObjectsModel ()
 
bool add (UMLObject *o)
 
bool remove (UMLObject *o)
 
int rowCount (const QModelIndex &parent) const
 
int columnCount (const QModelIndex &parent) const
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
void emitDataChanged (const QModelIndex &index)
 
void emitDataChanged (int index)
 
void emitDataChanged (UMLObject *o)
 

Protected Attributes

QList< QPointer< UMLObject > > m_allObjects
 

Constructor & Destructor Documentation

◆ ObjectsModel()

ObjectsModel::ObjectsModel ( )
explicit

Member Function Documentation

◆ add()

bool ObjectsModel::add ( UMLObject * o)

◆ columnCount()

int ObjectsModel::columnCount ( const QModelIndex & parent) const

◆ data()

QVariant ObjectsModel::data ( const QModelIndex & index,
int role = Qt::DisplayRole ) const
Here is the call graph for this function:

◆ emitDataChanged() [1/3]

void ObjectsModel::emitDataChanged ( const QModelIndex & index)

◆ emitDataChanged() [2/3]

void ObjectsModel::emitDataChanged ( int index)

◆ emitDataChanged() [3/3]

void ObjectsModel::emitDataChanged ( UMLObject * o)
Here is the call graph for this function:

◆ headerData()

QVariant ObjectsModel::headerData ( int section,
Qt::Orientation orientation,
int role = Qt::DisplayRole ) const

◆ remove()

bool ObjectsModel::remove ( UMLObject * o)

◆ rowCount()

int ObjectsModel::rowCount ( const QModelIndex & parent) const

Member Data Documentation

◆ m_allObjects

QList<QPointer<UMLObject> > ObjectsModel::m_allObjects
protected

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