parameters: (self, index, role=QtCore.Qt.DisplayRole)
docstring: Return the data stored under the given role for the item referred to by
          the index.
docstring_summary: Return the data stored under the given role for the item referred to by
          the index.
docstring_tokens: Return the data stored under the given role for the item referred to by the index .
function: def data(self, index, role=QtCore.Qt.DisplayRole):
          """
          Return the data stored under the given role for the item referred to by
          the index.
          """
          if not index.isValid():
              return
          item = index.internalPointer()
          if (role == QtCore.Qt.DisplayRole or
                  role == QtCore.Qt.EditRole or role == QtCore.Qt.ToolTipRole):
              return item.getName()
          elif role == QtCore.Qt.SizeHintRole:
              return QtCore.QSize(dpiScale(250), dpiScale(20))
          elif role == QtCore.Qt.BackgroundRole:
              return QtGui.QColor(71, 71, 71)
          elif role == NODE_BAR_COLOUR:
              return QtGui.QColor(113, 142, 164)
          elif role == ACTIONS:
              return item.getActions()
          elif role == ICON:
              return item.getIcon()
          elif role == TEXT_INDENT:
              return item.getIndent()
function_tokens: def data ( self , index , role = QtCore . Qt . DisplayRole ) : if not index . isValid ( ) : return item = index . internalPointer ( ) if ( role == QtCore . Qt . DisplayRole or role == QtCore . Qt . EditRole or role == QtCore . Qt . ToolTipRole ) : return item . getName ( ) elif role == QtCore . Qt . SizeHintRole : return QtCore . QSize ( dpiScale ( 250 ) , dpiScale ( 20 ) ) elif role == QtCore . Qt . BackgroundRole : return QtGui . QColor ( 71 , 71 , 71 ) elif role == NODE_BAR_COLOUR : return QtGui . QColor ( 113 , 142 , 164 ) elif role == ACTIONS : return item . getActions ( ) elif role == ICON : return item . getIcon ( ) elif role == TEXT_INDENT : return item . getIndent ( )