(self, sourceParent, sourceRow, destParent, destRow)
return didmove
Move sourceRow from sourceParent to destinationRow under destParent.

        Returns True if the row was successfully moved; otherwise
        returns false.

        .. note:: Only moves within the same parent are currently supported
Move sourceRow from sourceParent to destinationRow under destParent.
Move sourceRow from sourceParent to destinationRow under destParent .
def moveRow(self, sourceParent, sourceRow, destParent, destRow):
        """
        Move sourceRow from sourceParent to destinationRow under destParent.

        Returns True if the row was successfully moved; otherwise
        returns false.

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

        """
        if not sourceParent == destParent:
            return False

        if not self.beginMoveRows(sourceParent, sourceRow, sourceRow,
                                  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().
        # I am mostly sure this is safe (a possible problem would be if the
        # base class itself would connect to the rowsInserted, ... to monitor
        # ensure internal invariants)
        with blocked(self):
            didmove = list_model_move_row_helper(
                self, sourceParent, sourceRow, destRow)
        self.endMoveRows()

        if not didmove:
            warnings.warn(
                "`moveRow` did not succeed! Data model might be "
                "in an inconsistent state.",
                RuntimeWarning)
        return didmove
def moveRow ( self , sourceParent , sourceRow , destParent , destRow ) : if not sourceParent == destParent : return False if not self . beginMoveRows ( sourceParent , sourceRow , sourceRow , 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(). # I am mostly sure this is safe (a possible problem would be if the # base class itself would connect to the rowsInserted, ... to monitor # ensure internal invariants) with blocked ( self ) : didmove = list_model_move_row_helper ( self , sourceParent , sourceRow , destRow ) self . endMoveRows ( ) if not didmove : warnings . warn ( "`moveRow` did not succeed! Data model might be " "in an inconsistent state." , RuntimeWarning ) return didmove