summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qjnihelpers_p.h
diff options
context:
space:
mode:
authorKonstantin Shegunov <kshegunov@gmail.com>2016-07-29 09:24:58 +0300
committerKonstantin Shegunov <kshegunov@gmail.com>2016-08-03 11:47:58 +0000
commit5dd907bf639f43be7f2cdfdd44ec3795f1b31bf6 (patch)
treeec880e94319486587fc78e529f02afb3d4f45e2d /src/corelib/kernel/qjnihelpers_p.h
parent5a133a404ebaa5233d5370ace10ba9532b9c6adc (diff)
Save QFont's style name if present
Font style names are quite irregular and the simplistic matching implemented in QFontDatabase::styleString(const QFont &) is unable to properly resolve the style name when font is recreated from a string. This causes the fonts before and after serialization to be considered different, even though they are not. The from/toString methods were made to write and respect the exact font style. [ChangeLog][QtGui][Important Behavior Changes] QFont::toString() and QFont::key() were modified to save the font's style name if one is set, invalidating any stored font identifiers. QFont::fromString() was also adjusted to accommodate the change. Task-number: QTBUG-54936 Change-Id: Ibc7c54119acdd8f0950d6049cc89f859bf981504 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'src/corelib/kernel/qjnihelpers_p.h')
0 files changed, 0 insertions, 0 deletions