summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextdocument.cpp
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2012-08-24 12:47:21 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-25 19:04:56 +0200
commit1349299f458f41fdc9e7ac4a0592eaa358d2b033 (patch)
tree9104a3d7a9e35f06c6b7845837df85bc027ce278 /src/gui/text/qtextdocument.cpp
parent72a7c43e90917afd57564b881499322e92bbe78d (diff)
doc: Fix several text-related qdoc warnings
Also adds a new snippet which is just copy-pasted from the old documentation, because the snippet-file previously referenced seems to have disappeared. Change-Id: I0180715544321e076acda769cbdcbf19d50a971b Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Diffstat (limited to 'src/gui/text/qtextdocument.cpp')
-rw-r--r--src/gui/text/qtextdocument.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/gui/text/qtextdocument.cpp b/src/gui/text/qtextdocument.cpp
index 181c013420..3203f85cc9 100644
--- a/src/gui/text/qtextdocument.cpp
+++ b/src/gui/text/qtextdocument.cpp
@@ -219,8 +219,7 @@ QTextCodec *Qt::codecForHtml(const QByteArray &ba)
\reentrant
\inmodule QtGui
- \brief The QTextDocument class holds formatted text that can be
- viewed and edited using a QTextEdit.
+ \brief The QTextDocument class holds formatted text.
\ingroup richtext-processing
@@ -962,9 +961,9 @@ QString QTextDocument::defaultStyleSheet() const
This signal is emitted whenever the position of a cursor changed
due to an editing operation. The cursor that changed is passed in
- \a cursor. If you need a signal when the cursor is moved with the
- arrow keys you can use the \l{QTextEdit::}{cursorPositionChanged()} signal in
- QTextEdit.
+ \a cursor. If the document is used with the QTextEdit class and you need a signal when the
+ cursor is moved with the arrow keys you can use the \l{QTextEdit::}{cursorPositionChanged()}
+ signal in QTextEdit.
*/
/*!
@@ -1662,7 +1661,7 @@ static void printPage(int index, QPainter *painter, const QTextDocument *doc, co
}
/*!
- Prints the document to the given \a device. The QPageablePaintDevice must be
+ Prints the document to the given \a printer. The QPageablePaintDevice must be
set up before being used with this function.
This is only a convenience method to print the whole document to the printer.