#NEWLINE# def index( self , row , column , parent = QtCore . QModelIndex ( ) ) : #NEWLINE# #INDENT# if ( not parent . isValid ( ) ) : #NEWLINE# #INDENT# node = ( m . devices if ( row == 0 ) else m . apps ) #NEWLINE# return self . categories [ node ] #NEWLINE# #UNINDENT# category = parent . internalPointer ( ) #NEWLINE# if ( category == m . devices ) : #NEWLINE# #INDENT# return self . createIndex ( row , column , self . neo_list [ row ] ) #NEWLINE# #UNINDENT# return self . createIndex ( row , self , self . applets [ row ] )