QTextCharFormat::setFont(): Preserve the font hinting preference

Task-number: QTBUG-22653

Change-Id: I9153486ff7793ba4427b64459896ab1328d51548
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
This commit is contained in:
Konstantin Ritt 2013-04-02 05:37:13 +03:00 committed by The Qt Project
parent ef05a7d64f
commit 731f2a179b

View File

@ -1898,6 +1898,7 @@ void QTextCharFormat::setFont(const QFont &font)
setFontStretch(font.stretch());
setFontStyleHint(font.styleHint());
setFontStyleStrategy(font.styleStrategy());
setFontHintingPreference(font.hintingPreference());
setFontKerning(font.kerning());
}