summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextlayout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/text/qtextlayout.cpp')
-rw-r--r--src/gui/text/qtextlayout.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/text/qtextlayout.cpp b/src/gui/text/qtextlayout.cpp
index 2848d55fef..066f258ea3 100644
--- a/src/gui/text/qtextlayout.cpp
+++ b/src/gui/text/qtextlayout.cpp
@@ -630,6 +630,9 @@ Qt::CursorMoveStyle QTextLayout::cursorMoveStyle() const
/*!
Begins the layout process.
+ \warning This will invalidate the layout, so all existing QTextLine objects
+ that refer to the previous contents should now be discarded.
+
\sa endLayout()
*/
void QTextLayout::beginLayout()
@@ -673,6 +676,9 @@ void QTextLayout::endLayout()
Clears the line information in the layout. After having called
this function, lineCount() returns 0.
+
+ \warning This will invalidate the layout, so all existing QTextLine objects
+ that refer to the previous contents should now be discarded.
*/
void QTextLayout::clearLayout()
{