summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2013-04-02 05:37:13 +0300
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-02 22:29:10 +0200
commit731f2a179b2056509582ac66641cdd3c846ac9dc (patch)
tree9859ed2d546c879fb85cbaa09232b55908136859 /src
parentef05a7d64f6d0414da9ea02c5d2430fe7c4aac16 (diff)
QTextCharFormat::setFont(): Preserve the font hinting preference
Task-number: QTBUG-22653 Change-Id: I9153486ff7793ba4427b64459896ab1328d51548 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/gui/text/qtextformat.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/text/qtextformat.cpp b/src/gui/text/qtextformat.cpp
index 4decb3d248..4f8a25c5a8 100644
--- a/src/gui/text/qtextformat.cpp
+++ b/src/gui/text/qtextformat.cpp
@@ -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());
}