#NEWLINE# def insertRows( self , position , rows , parent = QtCore . QModelIndex ( ) ) : #NEWLINE# #INDENT# parentItem = self . getItem ( parent ) #NEWLINE# self . beginInsertRows ( parent , position , ( ( position + rows ) - 1 ) ) #NEWLINE# success = parentItem . insertChildren ( position , rows , self . rootItem . columnCount ( ) ) #NEWLINE# self . endInsertRows ( ) #NEWLINE# return parentItem