From ea77f41e5a806f0ec8e3bb463c95c4773315263b Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Fri, 17 Aug 2012 10:54:42 +0200 Subject: [PATCH] QTextEdit docs: fix qdoc warnings qdoc insists picking Q_PROPERTY(T document) instead of the individually documented getter and setter Change-Id: I6f4981db205c5726d70cef4d85b7dfffe2b1fe31 Reviewed-by: Gabriel de Dietrich --- src/widgets/widgets/qtextedit.cpp | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/widgets/widgets/qtextedit.cpp b/src/widgets/widgets/qtextedit.cpp index c9de35a..0ab76db 100644 --- a/src/widgets/widgets/qtextedit.cpp +++ b/src/widgets/widgets/qtextedit.cpp @@ -730,15 +730,13 @@ Qt::Alignment QTextEdit::alignment() const } /*! - Makes \a document the new document of the text editor. + \property QTextEdit::document + \brief the underlying document of the text editor. \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 the current document, even if it is a child of the editor. - - \sa 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. */ void QTextEdit::setDocument(QTextDocument *document) { @@ -748,11 +746,6 @@ void QTextEdit::setDocument(QTextDocument *document) d->relayoutDocument(); } -/*! - Returns a pointer to the underlying document. - - \sa setDocument() -*/ QTextDocument *QTextEdit::document() const { Q_D(const QTextEdit); -- 2.7.4