Fix the docs on when setDocument() deletes the previous document

Change-Id: I08d162a1c1e1765213205e63183ed75b2491374d
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
bb10
Andy Shaw 2014-01-13 21:44:27 +01:00 committed by The Qt Project
parent 65bd80ebfc
commit c36aa88683
1 changed files with 2 additions and 2 deletions

View File

@ -755,8 +755,8 @@ Qt::Alignment QTextEdit::alignment() const
\note The editor \e{does not take ownership of the document} unless it
is the document's parent object. The parent object of the provided document
remains the owner of the object. The editor does not delete any previously
assigned document, even if it is a child of the editor.
remains the owner of the object. If the previously assigned document is a
child of the editor then it will be deleted.
*/
void QTextEdit::setDocument(QTextDocument *document)
{