def data(self, mi, role):
        if role == QtCore.Qt.DisplayRole:
            index = mi.row() * self._editor.factory.cols + mi.column()
            if index < len(self._editor.names):
                return self._editor.names[index]

        return None
Reimplemented to return the data.
dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/image_enum_editor.py/ImageEnumModel.data