6.145. sibl_gui.ui.models

models.py

Platform:
Windows, Linux, Mac Os X.
Description:
Defines the Application models classes.

Others:

6.145.1. Module Attributes

sibl_gui.ui.models.LOGGER

6.145.2. Classes

class sibl_gui.ui.models.GraphModel(parent=None, rootNode=None, horizontalHeaders=None, verticalHeaders=None, defaultNode=None)[source]

Bases: umbra.ui.models.GraphModel

Defines a graph Model based on umbra.ui.models.GraphModel but reimplementing the umbra.ui.models.GraphModel.data() method to support various images formats as Qt.DecorationRole.

Initializes the class.

Parameters:
  • parent (QObject) – Object parent.
  • rootNode (AbstractCompositeNode) – Root node.
  • horizontalHeaders (OrderedDict) – Headers.
  • verticalHeaders (OrderedDict) – Headers.
  • defaultNode (GraphModelNode) – Default node.
data(index, role=0)[source]

Reimplements the umbra.ui.models.GraphModel.data() method.

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

Data.

Return type:

QVariant