source/riffle/model.py
def fetchMore(self, index):
        '''Fetch additional data under *index*.'''
        if not index.isValid():
            item = self.root
        else:
            item = index.internalPointer()

        if item.canFetchMore():
            startIndex = len(item.children)
            additionalChildren = item.fetchChildren()
            endIndex = startIndex + len(additionalChildren) - 1
            if endIndex >= startIndex:
                self.beginInsertRows(index, startIndex, endIndex)
                for newChild in additionalChildren:
                    item.addChild(newChild)
                self.endInsertRows()
def fetchMore(self, index):
        '''Fetch additional data under *index*.'''
        if not index.isValid():
            item = self.root
        else:
            item = index.internalPointer()

        if item.canFetchMore():
            startIndex = len(item.children)
            additionalChildren = item.fetchChildren()
            endIndex = startIndex + len(additionalChildren) - 1
            if endIndex >= startIndex:
                self.beginInsertRows(index, startIndex, endIndex)
                for newChild in additionalChildren:
                    item.addChild(newChild)
                self.endInsertRows()
def fetchMore ( self , index ) : if not index . isValid ( ) : item = self . root else : item = index . internalPointer ( ) if item . canFetchMore ( ) : startIndex = len ( item . children ) additionalChildren = item . fetchChildren ( ) endIndex = startIndex + len ( additionalChildren ) - 1 if endIndex >= startIndex : self . beginInsertRows ( index , startIndex , endIndex ) for newChild in additionalChildren : item . addChild ( newChild ) self . endInsertRows ( )
Fetch additional data under *index*.
Fetch additional data under * index * .