diff options
author | Norwegian Rock Cat <qt-info@nokia.com> | 2009-06-02 14:09:58 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2009-06-03 02:47:13 (GMT) |
commit | da139a9dd0f4df8009d7cd86ab25b2b4b19dfd96 (patch) | |
tree | 1d9200e5febf3a3e3dd35f2430153ce447093233 /doc/src/snippets/code/src_script_qscriptclass.cpp | |
parent | a37dd54265d302c96931d6b52b28d386c06b24e4 (diff) | |
download | Qt-da139a9dd0f4df8009d7cd86ab25b2b4b19dfd96.zip Qt-da139a9dd0f4df8009d7cd86ab25b2b4b19dfd96.tar.gz Qt-da139a9dd0f4df8009d7cd86ab25b2b4b19dfd96.tar.bz2 |
BT: Remove duplicate code and fix font parsing.
QFont has a feature that you can pass a comma-separated list and it will
walk through the list and match the font that it hits first. There's a
nice static function that X11 and Windows uses, but the Mac was using an
older copied version of it. This old version didn't handle quoting which
is what happens in the style sheet. So, using the same code makes
everything work well. As a bonus, Creator looks correct again.
Reviewed-by: Simon Hausmann
(cherry picked from commit ad46e77420449ede2cb6c1ea2a810a2614520db9)
Diffstat (limited to 'doc/src/snippets/code/src_script_qscriptclass.cpp')
0 files changed, 0 insertions, 0 deletions