'Set the document modified state.'

def setModified(self, modified):

    if (self.__modified != modified):
        self.__modified = modified
    if (not modified):
        self.__cleanProperties = node_properties(self.__scheme)
        self.__undoStack.setClean()
    else:
        self.__cleanProperties = []
