#NEWLINE# def index( self , row , column , parent = QtCore . QModelIndex ( ) ) : #NEWLINE# #INDENT# if ( parent . isValid ( ) and ( parent . column ( ) != 0 ) ) : #NEWLINE# #INDENT# return QtCore . QModelIndex ( ) #NEWLINE# #UNINDENT# parentItem = self . getItem ( parent ) #NEWLINE# childItem = parentItem . child ( row ) #NEWLINE# if childItem : #NEWLINE# #INDENT# return self . createIndex ( row , column , childItem ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return QtCore . QModelIndex ( )