(self, row, state)
Set the state for row.
Set the state for row.
Set the state for row .
def setStateForRow(self, row, state):
        # type: (int, TablePreview.RowSpec) -> None
        """
        Set the state for row.
        """
        if self.__timer.isActive():
            self.__resetPreview()

        model = self.__previewmodel
        if model is None:
            return
        rowcount = model.rowCount()
        while row > rowcount - 1 and model.canFetchMore():
            model.fetchMore()
            if model.rowCount() == rowcount:
                break
            rowcount = model.rowCount()

        model.setHeaderData(
            row, Qt.Vertical, state, TablePreviewModel.RowStateRole)
        self.dataview.setRowHints({row: state})
def setStateForRow ( self , row , state ) : # type: (int, TablePreview.RowSpec) -> None if self . __timer . isActive ( ) : self . __resetPreview ( ) model = self . __previewmodel if model is None : return rowcount = model . rowCount ( ) while row > rowcount - 1 and model . canFetchMore ( ) : model . fetchMore ( ) if model . rowCount ( ) == rowcount : break rowcount = model . rowCount ( ) model . setHeaderData ( row , Qt . Vertical , state , TablePreviewModel . RowStateRole ) self . dataview . setRowHints ( { row : state } )