diff options
author | Andy Shaw <andy.shaw@digia.com> | 2014-01-13 21:44:27 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-06 17:11:17 +0100 |
commit | c36aa886833cee26a929a531326c814ba94decf8 (patch) | |
tree | e02cbe6aa50d287a3e1e0eafc0e6f69827222652 /src/widgets/widgets/qtextedit.cpp | |
parent | 65bd80ebfc1be81a196a861ade40ff874a3554f0 (diff) |
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>
Diffstat (limited to 'src/widgets/widgets/qtextedit.cpp')
-rw-r--r-- | src/widgets/widgets/qtextedit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |