diff options
author | mae <qt-info@nokia.com> | 2009-06-08 10:43:13 (GMT) |
---|---|---|
committer | mae <qt-info@nokia.com> | 2009-06-08 10:45:19 (GMT) |
commit | 11303c676166cda3aae33e7e97939e9d2942271f (patch) | |
tree | aaa7614498e58e8eb567a87fbc1fbbbccb8cab29 /src/gui/text/qtextdocument_p.h | |
parent | fded22680a728ecba93feb87733785537c234b02 (diff) | |
download | Qt-11303c676166cda3aae33e7e97939e9d2942271f.zip Qt-11303c676166cda3aae33e7e97939e9d2942271f.tar.gz Qt-11303c676166cda3aae33e7e97939e9d2942271f.tar.bz2 |
Revert signal emission order in QTextDocument to 4.5 behaviour
This is covered by the autotest
tst_QTextDocument::receiveCursorPositionChangedAfterContentsChange()
Reviewed-by: con
Diffstat (limited to 'src/gui/text/qtextdocument_p.h')
-rw-r--r-- | src/gui/text/qtextdocument_p.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/text/qtextdocument_p.h b/src/gui/text/qtextdocument_p.h index d754ff0..e10e7ae 100644 --- a/src/gui/text/qtextdocument_p.h +++ b/src/gui/text/qtextdocument_p.h @@ -202,6 +202,7 @@ public: inline void beginEditBlock() { editBlock++; } void joinPreviousEditBlock(); void endEditBlock(); + inline void beginEdit() { inEdit = true; } void finishEdit(); inline bool isInEditBlock() const { return editBlock; } void enableUndoRedo(bool enable); @@ -335,8 +336,9 @@ public: QCss::StyleSheet parsedDefaultStyleSheet; #endif int maximumBlockCount; - bool needsEnsureMaximumBlockCount; - bool inContentsChange; + uint needsEnsureMaximumBlockCount : 1; + uint inContentsChange : 1; + uint inEdit : 1; // between beginEdit() and finishEdit() QSizeF pageSize; QString title; QString url; |