qt5base-lts/examples/widgets
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
..
animation Doc: revamp Animated Tiles example 2018-01-16 15:21:12 +00:00
desktop Merge remote-tracking branch 'origin/5.10' into dev 2018-01-20 22:36:19 +01:00
dialogs qtlite: Skip building examples when configured with no-feature-itemviews 2018-01-12 07:58:20 +00:00
doc Doc: review language and spelling in Editable Tree Model Example 2018-02-19 14:22:15 +00:00
draganddrop qtlite: Skip building examples when configured with no-feature-itemviews 2018-01-12 07:58:20 +00:00
effects Update usage of QFontMetrics::width() to new API 2017-12-08 15:06:32 +00:00
gestures qtlite: Skip building examples when configured with no-feature-itemviews 2018-01-12 07:58:20 +00:00
graphicsview Fix a bunch of compiler warnings in the qtbase examples 2018-02-07 20:00:22 +00:00
itemviews Fix typos 2018-02-13 15:51:10 +00:00
layouts qtlite: Skip building examples when configured with no-feature-itemviews 2018-01-12 07:58:20 +00:00
mac macOS: Make QMacNativeWidget example more usable 2017-02-12 12:29:55 +00:00
mainwindows Fix a bunch of compiler warnings in the qtbase examples 2018-02-07 20:00:22 +00:00
painting Merge remote-tracking branch 'origin/5.10' into dev 2018-01-20 22:36:19 +01:00
richtext preserve HTML heading level in QTextBlockFormat; demonstrate in example 2018-03-02 08:05:00 +00:00
scroller Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
statemachine Update usage of QFontMetrics::width() to new API 2017-12-08 15:06:32 +00:00
tools Fix typos 2018-02-13 15:51:10 +00:00
tutorials examples: Fix notepad example for configurations without printsupport 2018-01-22 08:27:26 +00:00
widgets Merge remote-tracking branch 'origin/5.10' into dev 2018-01-20 22:36:19 +01:00
windowcontainer Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
widgets.pro examples: fix compile without gui module 2017-05-05 06:54:15 +00:00