diff options
author | Mitch Curtis <mitch.curtis@digia.com> | 2013-01-28 10:41:23 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-02-01 07:45:33 +0100 |
commit | c81d15a746e50db8554d6362909d84784382917c (patch) | |
tree | 0f9f1f17570ec33ee24ad75bbdb45d4422c0945d /src/widgets | |
parent | 4b6bd14063875167a018495373a978ca3f003229 (diff) |
Correct QTextEdit detailed description.
Change-Id: Ie5c4769c864d9dfdc1cb4ed5d2cbfb9951df582b
Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/widgets/qtextedit.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/widgets/widgets/qtextedit.cpp b/src/widgets/widgets/qtextedit.cpp index b8f7e7e1d4..f033b6544c 100644 --- a/src/widgets/widgets/qtextedit.cpp +++ b/src/widgets/widgets/qtextedit.cpp @@ -468,12 +468,16 @@ void QTextEditPrivate::_q_ensureVisible(const QRectF &_rect) the currentCharFormatChanged() signal is emitted to reflect the new attributes at the new cursor position. + The textChanged() signal is emitted whenever the text changes (as a result + of setText() or through the editor itself). + QTextEdit holds a QTextDocument object which can be retrieved using the document() method. You can also set your own document object using setDocument(). - QTextDocument emits a textChanged() signal if the text changes and it also - provides a isModified() function which will return true if the text has been - modified since it was either loaded or since the last call to setModified - with false as argument. In addition it provides methods for undo and redo. + + QTextDocument provides an \l {QTextDocument::isModified()}{isModified()} + function which will return true if the text has been modified since it was + either loaded or since the last call to setModified with false as argument. + In addition it provides methods for undo and redo. \section2 Drag and Drop |