summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-11-02 08:22:37 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-11-15 12:36:43 (GMT)
commit32f8c01196f6ebc2bd18ee9f66929bdba61fea20 (patch)
treef039c8c4e0c66f335f89055f0353dad59552fecb /src
parentef4803f1d77fca4420b83fd9b0e109672b6473bf (diff)
downloadQt-32f8c01196f6ebc2bd18ee9f66929bdba61fea20.zip
Qt-32f8c01196f6ebc2bd18ee9f66929bdba61fea20.tar.gz
Qt-32f8c01196f6ebc2bd18ee9f66929bdba61fea20.tar.bz2
doc: Fix documentation of QTextEdit::setDocument
QTextEdit::setDocument() has failed to delete its current document since June 2006 despite its claims of the otherwise. Since most Qt versions now exhibit this behavior, the only safe way to fix the problem is to change the documentation to reflect what actually happens. Task-number: QTBUG-14049 Reviewed-by: Lars
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/qtextedit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qtextedit.cpp b/src/gui/widgets/qtextedit.cpp
index 4541730..6b3f444 100644
--- a/src/gui/widgets/qtextedit.cpp
+++ b/src/gui/widgets/qtextedit.cpp
@@ -773,7 +773,7 @@ Qt::Alignment QTextEdit::alignment() const
is the document's parent object. The parent object of the provided document
remains the owner of the object.
- If the current document is a child of the text editor, then it is deleted.
+ The editor does not delete the current document, even if it is a child of the editor.
\sa document()
*/