(self, parent=QModelIndex())
Reimplemented.
Reimplemented.
Reimplemented .
def fetchMore(self, parent=QModelIndex()):
        """Reimplemented."""
        if not parent.isValid():
            error = self.__error
            if self.__rowCount == 0:
                newrows = self.__tryFetchRows(20)
            else:
                newrows = self.__tryFetchRows(5)

            if newrows:
                extent = len(newrows), max(len(row) for row in newrows)
                rows, cols = self.__rowCount, self.__colCount

                self.beginInsertRows(QModelIndex(), rows, rows + extent[0] - 1)
                self.__rows.extend(newrows)
                self.__rowCount += extent[0]
                self.endInsertRows()

                if cols < extent[1]:
                    newColCount = max(cols, extent[1])
                    self.beginInsertColumns(QModelIndex(), cols, newColCount - 1)
                    self.__colCount = newColCount
                    self.endInsertColumns()

            # Emit error after inserting the final rows
            if self.__error is not None and self.__error != error:
                self.errorOccurred.emit(self.__error)
def fetchMore ( self , parent = QModelIndex ( ) ) : if not parent . isValid ( ) : error = self . __error if self . __rowCount == 0 : newrows = self . __tryFetchRows ( 20 ) else : newrows = self . __tryFetchRows ( 5 ) if newrows : extent = len ( newrows ) , max ( len ( row ) for row in newrows ) rows , cols = self . __rowCount , self . __colCount self . beginInsertRows ( QModelIndex ( ) , rows , rows + extent [ 0 ] - 1 ) self . __rows . extend ( newrows ) self . __rowCount += extent [ 0 ] self . endInsertRows ( ) if cols < extent [ 1 ] : newColCount = max ( cols , extent [ 1 ] ) self . beginInsertColumns ( QModelIndex ( ) , cols , newColCount - 1 ) self . __colCount = newColCount self . endInsertColumns ( ) # Emit error after inserting the final rows if self . __error is not None and self . __error != error : self . errorOccurred . emit ( self . __error )