From 391f5670a374192293b1a737db75aeb61451b3a4 Mon Sep 17 00:00:00 2001 From: Pekka Vuorela Date: Wed, 2 Nov 2011 10:53:09 +0200 Subject: Documented side-effect of QTextLayout::setPreeditArea() Invalidates layout and requires layouting again. Change-Id: I1cb954f155e4fc1df4b217478998ac903cc18323 Reviewed-by: Jiang Jiang --- src/gui/text/qtextlayout.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/gui/text/qtextlayout.cpp b/src/gui/text/qtextlayout.cpp index 9756b620b7..6936ad4929 100644 --- a/src/gui/text/qtextlayout.cpp +++ b/src/gui/text/qtextlayout.cpp @@ -433,7 +433,8 @@ QTextOption QTextLayout::textOption() const /*! Sets the \a position and \a text of the area in the layout that is - processed before editing occurs. + processed before editing occurs. The layout is + invalidated and must be laid out again. \sa preeditAreaPosition(), preeditAreaText() */ -- cgit v1.2.3