qt5base-lts/tests/auto/gui
Konstantin Shegunov 5dd907bf63 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>
2016-08-03 11:47:58 +00:00
..
image Merge remote-tracking branch 'origin/5.7' into dev 2016-08-01 18:20:00 +02:00
itemmodels QStandardItemModel: Reset the flags on clear() 2016-02-17 11:39:13 +00:00
kernel Add helper function to reset QMouseEvent localPos 2016-08-01 09:58:23 +00:00
math3d Updated license headers 2016-01-21 18:55:18 +00:00
painting Fix regression in rotated bilinear sampling 2016-07-27 17:23:42 +00:00
qopengl Make QOpenGLTextureBlitter public 2016-07-29 07:21:10 +00:00
qopenglconfig Updated license headers 2016-01-21 18:55:18 +00:00
text Save QFont's style name if present 2016-08-03 11:47:58 +00:00
util QtGui: Remove Windows CE. 2016-03-30 17:35:41 +00:00
gui.pro Add support for Apple tvOS 2016-05-17 16:11:23 +00:00