(self, role=Qt.UserRole+1)
return self.__data.get(role, None)
Reimplemented from QStandardItem
Reimplemented from QStandardItem
Reimplemented from QStandardItem
def data(self, role=Qt.UserRole+1):
        # type: (Qt.ItemDataRole) -> Any
        """Reimplemented from QStandardItem"""
        if role == Qt.EditRole and role not in self.__data:
            role = Qt.DisplayRole
        elif role == Qt.DisplayRole and role not in self.__data:
            role = Qt.EditRole
        return self.__data.get(role, None)
def data ( self , role = Qt . UserRole + 1 ) : # type: (Qt.ItemDataRole) -> Any if role == Qt . EditRole and role not in self . __data : role = Qt . DisplayRole elif role == Qt . DisplayRole and role not in self . __data : role = Qt . EditRole return self . __data . get ( role , None )