qt6-bb10/tests/auto/gui/text
Shawn Rutledge bf8167c5fc tst_QTextMarkdownWriter: test both ways of setting font characteristics
We have explicit QFont properties, and QTextFormat::setProperty().
Setting FontFixedPitch doesn't necessarily affect the view (QTextEdit or
Qt Quick Text/TextEdit); and setting the font to the one we get from
QFontDatabase::systemFont(QFontDatabase::FixedFont) is also unreliable,
because the "monospace" fallback might actually be proportional.
QTextMarkdownWriter checks for both to decide whether to use backticks;
so markdown writing works if an editor UI makes the format monospace
both ways to be safe. But in the opposite case that the main font is
actually a monospace font, it's always been broken.

The rest of the QTextCharFormat properties are generally working, to
the extent that they are applicable to Markdown. But we lacked explicit
test coverage: so far we were just reading Markdown or HTML and writing
Markdown to test the writer.

Also amend an old comment about writing underlines: writing was always
possible, and since f5c7799f59 reading is
supported too. So the underline support is symmetric (except that we
don't heed the QTextDocument::MarkdownFeatures argument to the writer
ctor: we probably should do that some day).

Pick-to: 6.7
Task-number: QTBUG-54623
Task-number: QTBUG-75648
Task-number: QTBUG-75649
Task-number: QTBUG-79900
Task-number: QTBUG-99676
Task-number: QTBUG-103484
Change-Id: Iacb4ed0ea59030570702d4eadfdadfad872065c6
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-02-14 18:36:42 -07:00
..
qabstracttextdocumentlayout Change license for tests files 2024-02-04 09:56:42 +01:00
qcssparser Change license for tests files 2024-02-04 09:56:42 +01:00
qfont Change license for tests files 2024-02-04 09:56:42 +01:00
qfontcache Change license for tests files 2024-02-04 09:56:42 +01:00
qfontdatabase Change license for tests files 2024-02-04 09:56:42 +01:00
qfontmetrics Change license for tests files 2024-02-04 09:56:42 +01:00
qglyphrun Change license for tests files 2024-02-04 09:56:42 +01:00
qinputcontrol Change license for tests files 2024-02-04 09:56:42 +01:00
qrawfont Change license for tests files 2024-02-04 09:56:42 +01:00
qstatictext Change license for tests files 2024-02-04 09:56:42 +01:00
qsyntaxhighlighter Change license for tests files 2024-02-04 09:56:42 +01:00
qtextblock Change license for tests files 2024-02-04 09:56:42 +01:00
qtextcursor Change license for tests files 2024-02-04 09:56:42 +01:00
qtextdocument Change license for tests files 2024-02-04 09:56:42 +01:00
qtextdocumentfragment Change license for tests files 2024-02-04 09:56:42 +01:00
qtextdocumentlayout Change license for tests files 2024-02-04 09:56:42 +01:00
qtextformat Change license for tests files 2024-02-04 09:56:42 +01:00
qtextimagehandler Change license for tests files 2024-02-04 09:56:42 +01:00
qtextlayout Change license for tests files 2024-02-04 09:56:42 +01:00
qtextlist Change license for tests files 2024-02-04 09:56:42 +01:00
qtextmarkdownimporter Change license for tests files 2024-02-04 09:56:42 +01:00
qtextmarkdownwriter tst_QTextMarkdownWriter: test both ways of setting font characteristics 2024-02-14 18:36:42 -07:00
qtextobject Change license for tests files 2024-02-04 09:56:42 +01:00
qtextodfwriter Change license for tests files 2024-02-04 09:56:42 +01:00
qtextpiecetable Change license for tests files 2024-02-04 09:56:42 +01:00
qtextscriptengine Change license for tests files 2024-02-04 09:56:42 +01:00
qtexttable Change license for tests files 2024-02-04 09:56:42 +01:00
CMakeLists.txt Move QZipReader/Writer from QtGui to QtCore 2023-04-26 12:01:05 +02:00