code: def set_type_icon(self, index):
          
          icon = index.model().index(index.row(), 0, index.parent()).data(QtCore.Qt.DecorationRole)
          if icon:
              pix = icon.pixmap(self.type_icon_lb.size())
              self.type_icon_lb.setPixmap(pix)
          else:
              self.type_icon_lb.setPixmap(None)
docs: Set the type icon on type_icon_lb
  
          :param index: the index
          :type index: :class:`QtGui.QModelIndex`
          :returns: None
          :rtype: None
          :raises: None