6.36. umbra.components.addons.projectsExplorer.models

models.py

Platform:
Windows, Linux, Mac Os X.
Description:
Defines the umbra.components.factory.projectsExplorer.projectsExplorer.ProjectsExplorer Component Interface class Models.

Others:

6.36.1. Module Attributes

umbra.components.addons.projectsExplorer.models.LOGGER

6.36.2. Classes

class umbra.components.addons.projectsExplorer.models.ProjectsProxyModel(parent, *args, **kwargs)[source]

Bases: PyQt4.QtGui.QSortFilterProxyModel

Defines the proxy Model used by the umbra.components.factory.projectsExplorer.projectsExplorer.ProjectsExplorer Component Interface class.

Initializes the class.

Parameters:
  • parent (QObject) – Object parent.
  • *args (*) – Arguments.
  • **kwargs (**) – Keywords arguments.
filterAcceptsRow(row, parent)[source]

Reimplements the QSortFilterProxyModel.filterAcceptsRow() method.

Parameters:
  • row (int) – Source row.
  • parent (QModelIndex) – Source parent.
Returns:

Filter result

Return type:

bool

data(index, role=0)[source]

Reimplements the QSortFilterProxyModel.data() method.

Parameters:
  • index (QModelIndex) – Index.
  • role (int) – Role.
Returns:

Data.

Return type:

QVariant

getNode(index)[source]

Returns the Node at given index.

Parameters:index (QModelIndex) – Index.
Returns:Node.
Return type:AbstractCompositeNode
getAttribute(*args)[source]

Reimplements requisite method.