models.py
Others:
Bases: PyQt4.QtCore.QAbstractItemModel
Initializes the class.
Parameters: |
|
---|
Property for self.__rootNode attribute.
Returns: | self.__rootNode. |
---|---|
Return type: | AbstractCompositeNode or GraphModelNode |
Property for self.__horizontalHeaders attribute.
Returns: | self.__horizontalHeaders. |
---|---|
Return type: | OrderedDict |
Property for self.__verticalHeaders attribute.
Returns: | self.__verticalHeaders. |
---|---|
Return type: | OrderedDict |
Property for self.__defaultNode attribute.
Returns: | self.__defaultNode. |
---|---|
Return type: | AbstractCompositeNode or GraphModelNode |
Reimplements the QAbstractItemModel.rowCount() method.
Parameters: | parent (AbstractCompositeNode or GraphModelNode) – Parent node. |
---|---|
Returns: | Row count. |
Return type: | int |
Reimplements the QAbstractItemModel.columnCount() method.
Parameters: | parent (AbstractCompositeNode or GraphModelNode) – Parent node. |
---|---|
Returns: | Column count. |
Return type: | int |
Reimplements the QAbstractItemModel.data() method.
Parameters: |
|
---|---|
Returns: | Data. |
Return type: | QVariant |
Reimplements the QAbstractItemModel.setData() method.
Parameters: |
|
---|---|
Returns: | Method success. |
Return type: | bool |
Reimplements the QAbstractItemModel.headerData() method.
Parameters: | |
---|---|
Returns: | Header data. |
Return type: | QVariant |
Reimplements the QAbstractItemModel.flags() method.
Parameters: | index (QModelIndex) – Index. |
---|---|
Returns: | Flags. ( Qt.ItemFlags ) |
Reimplements the QAbstractItemModel.parent() method.
Parameters: | index (QModelIndex) – Index. |
---|---|
Returns: | Parent. |
Return type: | QModelIndex |
Reimplements the QAbstractItemModel.index() method.
Parameters: | |
---|---|
Returns: | Index. |
Return type: | QModelIndex |
Reimplements the QAbstractItemModel.sort() method.
Parameters: |
|
---|
Reimplements the QAbstractItemModel.insertRows() method.
Parameters: | |
---|---|
Returns: | Method success. |
Return type: | bool |
Reimplements the QAbstractItemModel.removeRows() method.
Parameters: | |
---|---|
Returns: | Method success. |
Return type: | bool |
Moves given rows from parent to parent row.
Reimplements the QAbstractItemModel.mimeTypes() method.
Returns: | Mime types. |
---|---|
Return type: | QStringList |
Reimplements the QAbstractItemModel.mimeData() method.
Parameters: | indexes (QModelIndexList) – Indexes. |
---|---|
Returns: | MimeData. |
Return type: | QMimeData |
Returns the Node at given index.
Parameters: | index (QModelIndex) – Index. |
---|---|
Returns: | Node. |
Return type: | AbstractCompositeNode or GraphModelNode |
Returns the given Node attribute associated to the given column.
Parameters: |
|
---|---|
Returns: | Attribute. |
Return type: | Attribute |
Returns given Node index.
Parameters: | node (AbstractCompositeNode or GraphModelNode) – Node. |
---|---|
Returns: | Index. |
Return type: | QModelIndex |
Returns given Node attribute index at given column.
Parameters: |
|
---|---|
Returns: | Index. |
Return type: | QModelIndex |
Finds the children matching the given patten.
Parameters: | |
---|---|
Returns: | Matching children. |
Return type: | list |
Returns the Nodes from given family.
Parameters: | |
---|---|
Returns: | Family nodes. |
Return type: | list |
Returns the Node with given attribute.
Parameters: | attribute (GraphModelAttribute) – Attribute. |
---|---|
Returns: | Node. |
Return type: | GraphModelNode |
Returns the model(s) associated with given object.
Parameters: | object (GraphModelNode or GraphModelAttribute) – Node / Attribute. |
---|---|
Returns: | Model(s). |
Return type: | list |
Enables Model Nodes and attributes triggers.
Parameters: | state (bool) – Inform model state. |
---|---|
Returns: | Method success. |
Return type: | bool |