Skip to content

Commit

Permalink
Port example away from deprecated QTextCharFormat API
Browse files Browse the repository at this point in the history
Change-Id: I1d62f14f9e64f14809bdced4e5d906979034cbdc
Reviewed-by: Jonas Karlsson <[email protected]>
Reviewed-by: Andy Shaw <[email protected]>
  • Loading branch information
vohi committed Apr 23, 2021
1 parent 4dc7102 commit 00988ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/widgets/richtext/textedit/textedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ void TextEdit::textItalic()
void TextEdit::textFamily(const QString &f)
{
QTextCharFormat fmt;
fmt.setFontFamily(f);
fmt.setFontFamilies({f});
mergeFormatOnWordOrSelection(fmt);
}

Expand Down

0 comments on commit 00988ad

Please sign in to comment.