bool modified()

Return true if the document was modified since it was opened or last saved, false otherwise.