Table model for the components table.

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 ComponentsInfoType & | componentsInfo () const |
Private Types | |
| typedef QAbstractTableModel | Superclass |
Private Member Functions | |
| Q_DISABLE_COPY (pqComponentsModel) | |
Private Attributes | |
| ComponentsInfoType | myComponentsInfoVector |
| bool | myRenameSimilar |
|
private |
| typedef QPair<QString, QString> pqComponentsModel::SingleComponentInfoType |
| typedef QVector<SingleComponentInfoType> pqComponentsModel::ComponentsInfoType |
| pqComponentsModel::pqComponentsModel | ( | QObject * | parentObject = 0 | ) |
|
virtual |
| void pqComponentsModel::setRenameSimilar | ( | bool | IsRenameSimilar | ) |
References myComponentsInfoVector, and myRenameSimilar.
|
virtual |
References NEW_COMPONENT_NAME.
|
virtual |
References myComponentsInfoVector.
|
virtual |
|
virtual |
References COMPONENT_NAME, myComponentsInfoVector, and NEW_COMPONENT_NAME.
|
virtual |
References myComponentsInfoVector, myRenameSimilar, and NEW_COMPONENT_NAME.
| QVariant pqComponentsModel::headerData | ( | int | section, |
| Qt::Orientation | orientation, | ||
| int | role | ||
| ) | const |
References COMPONENT_NAME, and NEW_COMPONENT_NAME.
| void pqComponentsModel::setComponentsInfo | ( | const ComponentsInfoType & | data | ) |
References data(), and myComponentsInfoVector.
| const ComponentsInfoType& pqComponentsModel::componentsInfo | ( | ) | const |
References myComponentsInfoVector.
|
private |
|
private |
|
private |