summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextdocument.cpp
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2020-08-20 15:10:59 +0200
committerPaul Wicking <paul.wicking@qt.io>2020-08-28 11:58:25 +0200
commit8ff63383e431385ec2dab4ad82e0081f1da6d461 (patch)
tree8efc020a871ced56743f8a9aa9a66146af7e8d4b /src/gui/text/qtextdocument.cpp
parent2870c201dcd8093d557cec83df3228fe944ca203 (diff)
Doc: Compile textdocument-end snippets
* Extend GUI snippet compilation with textdocument-end snippet. * Rename the snippet file and replace main() with wrapper(). * Dedent the snippet itself. * Update documentation that includes the snippet. Done-with: Nico Vertriest <nico.vertriest@qt.io> Task-number: QTBUG-81486 Change-Id: Id5e5b284587da1e7fdfd00baa9c899626832a113 Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/gui/text/qtextdocument.cpp')
-rw-r--r--src/gui/text/qtextdocument.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qtextdocument.cpp b/src/gui/text/qtextdocument.cpp
index a4ecbd157f..3cee66095b 100644
--- a/src/gui/text/qtextdocument.cpp
+++ b/src/gui/text/qtextdocument.cpp
@@ -1642,7 +1642,7 @@ QTextBlock QTextDocument::begin() const
This function returns a block to test for the end of the document
while iterating over it.
- \snippet textdocumentendsnippet.cpp 0
+ \snippet textdocument-end/textdocumentendsnippet.cpp 0
The block returned is invalid and represents the block after the
last block in the document. You can use lastBlock() to retrieve the