summaryrefslogtreecommitdiffstats
path: root/src/gui/text
diff options
context:
space:
mode:
authorGeir Vattekar <geir.vattekar@nokia.com>2010-09-15 13:35:54 (GMT)
committerGeir Vattekar <geir.vattekar@nokia.com>2010-09-15 13:35:54 (GMT)
commit4c489c2ecfbcc6d0f8f7ec52b5e4d81e15ce4818 (patch)
tree4121949bd91857dd47d69274c3ba63a7c6ab9ff8 /src/gui/text
parent15ba1ff23c140849d3cac32a5005c352cd5a699f (diff)
downloadQt-4c489c2ecfbcc6d0f8f7ec52b5e4d81e15ce4818.zip
Qt-4c489c2ecfbcc6d0f8f7ec52b5e4d81e15ce4818.tar.gz
Qt-4c489c2ecfbcc6d0f8f7ec52b5e4d81e15ce4818.tar.bz2
Doc: Listed undoable operations in QTextDocument
Task-number: QT-1212 Reviewed-by: David Boddie
Diffstat (limited to 'src/gui/text')
-rw-r--r--src/gui/text/qtextdocument.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/gui/text/qtextdocument.cpp b/src/gui/text/qtextdocument.cpp
index 195dc28..c35069f 100644
--- a/src/gui/text/qtextdocument.cpp
+++ b/src/gui/text/qtextdocument.cpp
@@ -291,7 +291,18 @@ QTextCodec *Qt::codecForHtml(const QByteArray &ba)
by an editor widget through the undo() and redo() slots; the document also
provides contentsChanged(), undoAvailable(), and redoAvailable() signals
that inform connected editor widgets about the state of the undo/redo
- system.
+ system. The following are the undo/redo operations of a QTextDocument:
+
+ \list
+ \o Insertion or removal of characters. A sequence of insertions or removals
+ within the same text block are regarded as a single undo/redo operation.
+ \o Insertion or removal of text blocks. Sequences of insertion or removals
+ in a single operation (e.g., by selecting and then deleting text) are
+ regarded as a single undo/redo operation.
+ \o Text character format changes.
+ \o Text block format changes.
+ \o Text block group format changes.
+ \endlist
\sa QTextCursor, QTextEdit, \link richtext.html Rich Text Processing\endlink , {Text Object Example}
*/