qt5base-lts/examples/widgets/richtext/textedit
Shawn Rutledge 310daae539 preserve HTML heading level in QTextBlockFormat; demonstrate in example
When reading an HTML file with <H1> for example, we still set the font
size as before (that's how it always was done),
but now it remembers that it came from an H1 tag, so it writes
<h1 ...><span font-size:xx-large ...> ...  rather than
<p ...><span ...> ...  This will help with the upcoming Markdown
format, where heading level is saved but the font is not.

Now the style combobox in examples/widgets/richtext/textedit can set
list item type, heading type or "standard" formatting, and also shows the
current formatting of the line that has the cursor.  It was always a
shortcoming in this example that it only allowed setting the current line's
block format but had no feedback to show the current format.

Change-Id: I0a7849b74f23fea84d3375c487c3a6b9f43240c1
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2018-03-02 08:05:00 +00:00
..
images Moving .qdoc files under examples/widgets/doc 2012-08-20 12:20:55 +02:00
example.html preserve HTML heading level in QTextBlockFormat; demonstrate in example 2018-03-02 08:05:00 +00:00
main.cpp Updated license headers 2016-01-21 18:55:32 +00:00
textedit.cpp preserve HTML heading level in QTextBlockFormat; demonstrate in example 2018-03-02 08:05:00 +00:00
textedit.h Examples: Remove a redundant virtual specifier for overriders 2016-11-25 22:36:21 +00:00
textedit.pro qtlite: Skip building examples when configured with no-feature-itemviews 2018-01-12 07:58:20 +00:00
textedit.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
textedit.qrc Moving .qdoc files under examples/widgets/doc 2012-08-20 12:20:55 +02:00