summaryrefslogtreecommitdiff
path: root/src/gui/text/qtextdocumentfragment.h
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2022-01-05 08:29:21 +0100
committerKai Köhne <kai.koehne@qt.io>2022-01-06 07:58:39 +0100
commit93c1f481abb43c33c53fca703a83a19d208b68df (patch)
tree2f5926b3d244f7bc86e48369aeac175a14f0406c /src/gui/text/qtextdocumentfragment.h
parentf19ce3898e0257dac1112754b1a84c24486bda01 (diff)
downloadqtbase-93c1f481abb43c33c53fca703a83a19d208b68df.tar.gz
Add QTextDocumentFragment::toRawText()
Like QTextDocument::toRawText(), QTextDocumentFragment::toRawText() does allow access to the raw string without normalizing nbsp, line separator, paragraph separator unicode characters. [ChangeLog][QtGui][Text] Added QTextDocumentFragment::toRawText() function. Task-number: QTBUG-99572 Change-Id: Ia74150a3870ea0e6326fdcda4d9d0410019124ae Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src/gui/text/qtextdocumentfragment.h')
-rw-r--r--src/gui/text/qtextdocumentfragment.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/text/qtextdocumentfragment.h b/src/gui/text/qtextdocumentfragment.h
index 2283b06c6c..37d7006ae6 100644
--- a/src/gui/text/qtextdocumentfragment.h
+++ b/src/gui/text/qtextdocumentfragment.h
@@ -64,6 +64,7 @@ public:
bool isEmpty() const;
QString toPlainText() const;
+ QString toRawText() const;
#ifndef QT_NO_TEXTHTMLPARSER
QString toHtml() const;
#endif // QT_NO_TEXTHTMLPARSER