summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJiang Jiang <jiang.jiang@nokia.com>2011-06-09 15:58:09 +0200
committerQt by Nokia <qt-info@nokia.com>2011-06-27 10:59:28 +0200
commit1fda23c0c63e0b445e303c1fd64ecb9d925b6976 (patch)
tree4f211e9743f867d1150700c6c54de4bd4a47c323 /examples
parenta06c8405d053b16327d65415f3335eceb37abd3b (diff)
Store styleName in font database
So that queries like QFontDatabase::styles() can return exactly the same styles as the system does. Then application can use QFont::setStyleName() to select those styles later. With a lot of fonts not providing correct numeric weight/width values and even if they did, values are usually not directly mapped to QFont enums, styleName is probably the only reliable way to select any possible font in the system. Reviewed-by: QTBUG-13518 Change-Id: Id8a9469b804f1b5bb81d8c7378e7e8778f9a4fff Reviewed-on: http://codereview.qt.nokia.com/739 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions