From c36aa886833cee26a929a531326c814ba94decf8 Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Mon, 13 Jan 2014 21:44:27 +0100 Subject: Fix the docs on when setDocument() deletes the previous document MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I08d162a1c1e1765213205e63183ed75b2491374d Reviewed-by: Jerome Pasion Reviewed-by: Topi Reiniƶ --- src/widgets/widgets/qtextedit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/widgets/widgets/qtextedit.cpp') diff --git a/src/widgets/widgets/qtextedit.cpp b/src/widgets/widgets/qtextedit.cpp index e47abace4d..29538e1b70 100644 --- a/src/widgets/widgets/qtextedit.cpp +++ b/src/widgets/widgets/qtextedit.cpp @@ -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) { -- cgit v1.2.3