Reimplements the :meth:`QAbstractListModel.data` method.

        :param index: Index.
        :type index: QModelIndex
        :param role: Role.
        :type role: int
        :return: Data.
        :rtype: QVariant

def data(self, index, role=Qt.DisplayRole):
        """
        Reimplements the :meth:`QAbstractListModel.data` method.

        :param index: Index.
        :type index: QModelIndex
        :param role: Role.
        :type role: int
        :return: Data.
        :rtype: QVariant
        """

        if not index.isValid():
            return QVariant()

        if role == Qt.DisplayRole:
            return QVariant(self.__languages[index.row()].name)
        return QVariant()