Version: 8.3.0
pqComponentsModel Class Reference

Table model for the components table.

Inheritance diagram for pqComponentsModel:
Inheritance graph

Public Types

enum  ColumnRoles { COMPONENT_NAME = 0, NEW_COMPONENT_NAME = 1 }
 
typedef QPair< QString, QString > SingleComponentInfoType
 
typedef QVector
< SingleComponentInfoType
ComponentsInfoType
 

Public Member Functions

 pqComponentsModel (QObject *parentObject=0)
 
virtual ~pqComponentsModel ()
 
void setRenameSimilar (bool IsRenameSimilar)
 
virtual Qt::ItemFlags flags (const QModelIndex &idx) const
 
virtual int rowCount (const QModelIndex &idx=QModelIndex()) const
 
virtual int columnCount (const QModelIndex &idx=QModelIndex()) const
 
virtual QVariant data (const QModelIndex &idx, int role=Qt::DisplayRole) const
 
virtual bool setData (const QModelIndex &idx, const QVariant &value, int role=Qt::EditRole)
 
QVariant headerData (int section, Qt::Orientation orientation, int role) const
 
void setComponentsInfo (const ComponentsInfoType &data)
 
const ComponentsInfoTypecomponentsInfo () const
 

Private Types

typedef QAbstractTableModel Superclass
 

Private Member Functions

 Q_DISABLE_COPY (pqComponentsModel)
 

Private Attributes

ComponentsInfoType myComponentsInfoVector
 
bool myRenameSimilar
 

Member Typedef Documentation

typedef QPair<QString, QString> pqComponentsModel::SingleComponentInfoType

Member Enumeration Documentation

Enumerator
COMPONENT_NAME 
NEW_COMPONENT_NAME 

Constructor & Destructor Documentation

pqComponentsModel::pqComponentsModel ( QObject parentObject = 0)
virtual pqComponentsModel::~pqComponentsModel ( )
virtual

Member Function Documentation

void pqComponentsModel::setRenameSimilar ( bool  IsRenameSimilar)
virtual Qt::ItemFlags pqComponentsModel::flags ( const QModelIndex &  idx) const
virtual

References NEW_COMPONENT_NAME.

virtual int pqComponentsModel::rowCount ( const QModelIndex &  idx = QModelIndex()) const
virtual
virtual int pqComponentsModel::columnCount ( const QModelIndex &  idx = QModelIndex()) const
virtual
virtual QVariant pqComponentsModel::data ( const QModelIndex &  idx,
int  role = Qt::DisplayRole 
) const
virtual
virtual bool pqComponentsModel::setData ( const QModelIndex &  idx,
const QVariant &  value,
int  role = Qt::EditRole 
)
virtual
QVariant pqComponentsModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
void pqComponentsModel::setComponentsInfo ( const ComponentsInfoType data)

References data(), and myComponentsInfoVector.

const ComponentsInfoType& pqComponentsModel::componentsInfo ( ) const
pqComponentsModel::Q_DISABLE_COPY ( pqComponentsModel  )
private

Field Documentation

ComponentsInfoType pqComponentsModel::myComponentsInfoVector
private
bool pqComponentsModel::myRenameSimilar
private