From f53e4b586012abbc7b3f9b71e7f891c52c347a23 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Wed, 18 May 2022 11:16:55 +0200 Subject: [PATCH] doc: cross-link markdown functions in QTextDocumentFragment, QTextCursor Followup to 7c7606460403e6495b860134f28e8d4d45c6c810 Task-number: QTBUG-76105 Change-Id: I15ec22fb2bb40dc7b0f6f685cb2dc77a08c89918 Reviewed-by: Allan Sandfeld Jensen --- src/gui/text/qtextdocumentfragment.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/gui/text/qtextdocumentfragment.cpp b/src/gui/text/qtextdocumentfragment.cpp index 0bfcc976f1..0118c34c97 100644 --- a/src/gui/text/qtextdocumentfragment.cpp +++ b/src/gui/text/qtextdocumentfragment.cpp @@ -239,8 +239,8 @@ void QTextDocumentFragmentPrivate::insert(QTextCursor &_cursor) const static functions, fromPlainText() and fromHtml(). The contents of a document fragment can be obtained as raw text - by using the toRawText() function, or it can be obtained as HTML - with toHtml(). + by using the toRawText() function, as ASCII with toPlainText(), + as HTML with toHtml(), or as Markdown with toMarkdown(). */ /*! @@ -337,8 +337,7 @@ bool QTextDocumentFragment::isEmpty() const If you need the precise contents of the document, use toRawText() instead. - - \sa toHtml(), toRawText() + \sa toHtml(), toMarkdown(), toRawText() */ QString QTextDocumentFragment::toPlainText() const { @@ -353,7 +352,7 @@ QString QTextDocumentFragment::toPlainText() const formatting information). \since 6.4 - \sa toHtml(), toPlainText() + \sa toHtml(), toMarkdown(), toPlainText() */ QString QTextDocumentFragment::toRawText() const { @@ -370,7 +369,7 @@ QString QTextDocumentFragment::toRawText() const Returns the contents of the document fragment as HTML. - \sa toPlainText(), QTextDocument::toHtml() + \sa toPlainText(), toMarkdown(), QTextDocument::toHtml() */ QString QTextDocumentFragment::toHtml() const {