diff options
author | J-P Nurmi <j-p.nurmi@nokia.com> | 2012-08-17 10:54:42 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-20 21:10:54 +0200 |
commit | ea77f41e5a806f0ec8e3bb463c95c4773315263b (patch) | |
tree | 9c24c53eb34f8af6c06152c371ce2d1788469b2a /src/widgets/widgets | |
parent | eb0e960e74da6b799c4d8f95cb6a22412c4c9466 (diff) |
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 <gabriel.dietrich-de@nokia.com>
Diffstat (limited to 'src/widgets/widgets')
-rw-r--r-- | src/widgets/widgets/qtextedit.cpp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/widgets/widgets/qtextedit.cpp b/src/widgets/widgets/qtextedit.cpp index c9de35a261..0ab76db5d3 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); |