Port example away from deprecated QTextCharFormat API

Change-Id: I1d62f14f9e64f14809bdced4e5d906979034cbdc
Reviewed-by: Jonas Karlsson <jonas.karlsson@qt.io>
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
This commit is contained in:
Volker Hilsheimer 2021-04-16 11:29:46 +02:00
parent 4dc7102c84
commit 00988adcf9

View File

@ -620,7 +620,7 @@ void TextEdit::textItalic()
void TextEdit::textFamily(const QString &f)
{
QTextCharFormat fmt;
fmt.setFontFamily(f);
fmt.setFontFamilies({f});
mergeFormatOnWordOrSelection(fmt);
}