(self, sourceParent, sourceRow, count,
                 destParent, destRow)
return didmove
Move count rows starting with the given sourceRow under parent
        sourceParent to row destRow under parent destParent.

        Return true if the rows were successfully moved; otherwise
        returns false.

        .. note:: Only moves within the same parent are currently supported
Move count rows starting with the given sourceRow under parent
        sourceParent to row destRow under parent destParent.
Move count rows starting with the given sourceRow under parent sourceParent to row destRow under parent destParent .
def moveRows(self, sourceParent, sourceRow, count,
                 destParent, destRow):
        """
        Move count rows starting with the given sourceRow under parent
        sourceParent to row destRow under parent destParent.

        Return true if the rows were successfully moved; otherwise
        returns false.

        .. note:: Only moves within the same parent are currently supported

        """
        if not self.beginMoveRows(sourceParent, sourceRow, sourceRow + count,
                                  destParent, destRow):
            return False

        # block so rowsRemoved/Inserted and dataChanged signals
        # are not emitted during the move. Instead the rowsMoved
        # signal will be emitted from self.endMoveRows().
        with blocked(self):
            didmove = list_model_move_rows_helper(
                self, sourceParent, sourceRow, count, destRow)
        self.endMoveRows()

        if not didmove:
            warnings.warn(
                "`moveRows` did not succeed! Data model might be "
                "in an inconsistent state.",
                RuntimeWarning)
        return didmove
def moveRows ( self , sourceParent , sourceRow , count , destParent , destRow ) : if not self . beginMoveRows ( sourceParent , sourceRow , sourceRow + count , destParent , destRow ) : return False # block so rowsRemoved/Inserted and dataChanged signals # are not emitted during the move. Instead the rowsMoved # signal will be emitted from self.endMoveRows(). with blocked ( self ) : didmove = list_model_move_rows_helper ( self , sourceParent , sourceRow , count , destRow ) self . endMoveRows ( ) if not didmove : warnings . warn ( "`moveRows` did not succeed! Data model might be " "in an inconsistent state." , RuntimeWarning ) return didmove