#NEWLINE# def data( self , mi , role ) : #NEWLINE# #INDENT# ' Reimplemented to return the data.\n        ' #NEWLINE# if ( role == QtCore . Qt . DisplayRole ) : #NEWLINE# #INDENT# index = ( ( mi . row ( ) * self . _editor . factory . cols ) + mi . column ( ) ) #NEWLINE# if ( index < len ( self . _editor . names ) ) : #NEWLINE# #INDENT# return self . _editor . names [ index ] #NEWLINE# #UNINDENT# #UNINDENT# return None