summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qsyntaxhighlighter.cpp
diff options
context:
space:
mode:
authorNorwegian Rock Cat <qt-info@nokia.com>2009-06-02 14:09:58 (GMT)
committerNorwegian Rock Cat <qt-info@nokia.com>2009-06-02 14:13:11 (GMT)
commitad46e77420449ede2cb6c1ea2a810a2614520db9 (patch)
tree87842b98bd017d46ad6a893be8646271bb18bbcd /src/gui/text/qsyntaxhighlighter.cpp
parentd7700105933b3c4071f8df524915dbaa2092d82b (diff)
downloadQt-ad46e77420449ede2cb6c1ea2a810a2614520db9.zip
Qt-ad46e77420449ede2cb6c1ea2a810a2614520db9.tar.gz
Qt-ad46e77420449ede2cb6c1ea2a810a2614520db9.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
Diffstat (limited to 'src/gui/text/qsyntaxhighlighter.cpp')
0 files changed, 0 insertions, 0 deletions