path: root/examples/painting
diff options
authorJiang Jiang <>2011-06-09 15:58:09 +0200
committerQt by Nokia <>2011-06-27 10:59:28 +0200
commit1fda23c0c63e0b445e303c1fd64ecb9d925b6976 (patch)
tree4f211e9743f867d1150700c6c54de4bd4a47c323 /examples/painting
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: Reviewed-by: Qt Sanity Bot <> Reviewed-by: Eskil Abrahamsen Blomfeldt <>
Diffstat (limited to 'examples/painting')
0 files changed, 0 insertions, 0 deletions