summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtexthtmlparser_p.h
diff options
context:
space:
mode:
authorAlbert Astals Cid <albert.astals.cid@kdab.com>2021-05-28 14:51:34 +0200
committerAlbert Astals Cid <albert.astals.cid@kdab.com>2021-06-03 17:05:44 +0200
commitc3102b1f7695789e86c8fc7704736074e9ea61a0 (patch)
treead70895c193b9e51273065aa9fffb7c2b3cda91d /src/gui/text/qtexthtmlparser_p.h
parenteab0bb73a503007d152a3406a1b96133a3bcab57 (diff)
Extract the entity parsing code to a static function
This way we can use it from qtdeclarative to parse styled text Change-Id: Ic888a75a9700558e97b3e743d6d42fda121ddcba Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/gui/text/qtexthtmlparser_p.h')
-rw-r--r--src/gui/text/qtexthtmlparser_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/text/qtexthtmlparser_p.h b/src/gui/text/qtexthtmlparser_p.h
index b99f73fafb..06bbc032a8 100644
--- a/src/gui/text/qtexthtmlparser_p.h
+++ b/src/gui/text/qtexthtmlparser_p.h
@@ -310,6 +310,9 @@ public:
void parse(const QString &text, const QTextDocument *resourceProvider);
static int lookupElement(const QString &element);
+
+ Q_GUI_EXPORT static QString parseEntity(QStringView entity);
+
protected:
QTextHtmlParserNode *newNode(int parent);
QList<QTextHtmlParserNode *> nodes;