summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtexthtmlparser.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2019-05-19 13:06:05 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2019-05-30 16:37:23 +0000
commit0eb26c144346dcb12008e5b3e9441073f09668a8 (patch)
tree4134706a0eba2a22312ef2eb8350a28231c5c936 /src/gui/text/qtexthtmlparser.cpp
parenta5b373e0db45a28c133bf413e00f15271aa20200 (diff)
QTextBrowser: detect and load markdown rather than assuming HTML
So we add the QTextDocument::ResourceType::MarkdownResource enum value to indicate the type. QMimeDatabase is generally unable to detect markdown by "magic", so we need to use the common file extensions to detect it (the same extensions as declared in the mime database XML). Change-Id: Ib71f03abd535c17e5a8c99bd92d0a6062e972837 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/gui/text/qtexthtmlparser.cpp')
0 files changed, 0 insertions, 0 deletions